/* General mobile breakpoints extracted from mobile final. Loaded only on narrow screens. */
@media (max-width: 980px) {
  .header-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
  }

  .menu-toggle {
    grid-column: 2;
    justify-self: end;
    display: inline-grid;
    place-items: center;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .hero-annotations {
    display: none;
  }

  .authority-stats {
    justify-content: flex-start;
    padding: 18px 20px;
  }

  .authority-stat {
    min-width: 90px;
    padding: 0 clamp(8px, 3.5vw, 16px);
    gap: 6px;
  }

  .auth-number {
    font-size: clamp(18px, 5vw, 26px);
  }

  .authority-partners {
    gap: 12px;
  }

  .partners-eyebrow {
    padding-left: 20px;
    padding-right: 14px;
    font-size: 9px;
  }

  .partners-inner {
    gap: 40px;
    animation-duration: 28s;
  }

  .partner-logo {
    width: 80px;
    height: 16px;
  }

  .proof-strip,
  .split-section,
  .reviews-section,
  .area-section {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .service-layout {
    grid-template-columns: 1fr 1fr;
  }

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

  .process-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-header-right {
    gap: 16px;
  }

  .process-col:nth-child(even) {
    border-right: none;
  }

  .process-col:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
  }

  .process-col:nth-child(5) .process-col-img-wrap {
    aspect-ratio: 16 / 6;
  }

  .proof-strip .strip-label {
    max-width: 620px;
  }

  .proof-grid {
    border-top: 1px solid rgba(247, 245, 239, .14);
    border-left: 0;
  }

  .proof-grid div {
    min-height: 132px;
    padding: 24px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 245, 239, .14);
  }

  .service-large {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  /* ── MOBILE ONLY: header simplificado — solo logo centrado ── */
  .menu-toggle    { display: none; }
  .language-switch { display: none; }

  /* Logo centrado, 3× el tamaño original sin desplazar otros elementos */
  .header-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .brand {
    grid-column: 1;
    justify-self: center;
    margin-top: 50px;
  }
  .brand img {
    width: 126px;                  /* base original */
    transform: scale(3);           /* 3× visualmente */
    transform-origin: center center;
  }

  /* Toggle: ocultar del header — se reposiciona en hero portrait */
  .hero-mode-toggle { display: none; }

  /* Hero: padding para contenido bajo el header */
  .hero {
    padding-top: 100px;
  }

  .promo-ticker {
    height: 30px;
    overflow: hidden;
  }

  .promo-text {
    min-height: 30px;
    padding: 0 24px;
    font-size: 9px;
    line-height: 30px;
    letter-spacing: .05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Quitar puntos decorativos en mobile — ocupan espacio horizontal */
  .promo-text::before,
  .promo-text::after {
    display: none;
  }

  .loader-word {
    max-width: 82vw;
    font-size: min(var(--size), 30px);
  }

  .loader-word:nth-child(3n) {
    font-size: min(calc(var(--size) * .68), 18px);
  }

  .loader-logo {
    width: min(72vw, 280px);
  }

  .site-header {
    inset: 30px 0 auto;
    padding: 0 16px;
  }

  .site-header.is-scrolled {
    inset: 8px 0 auto;
  }

  /* Glass header scrolled: solo logo centrado y más grande */
  .site-header.is-scrolled .header-shell {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .site-header.is-scrolled .brand {
    grid-column: 1;
    justify-self: center;
    margin-top: 0;
  }
  .site-header.is-scrolled .brand img {
    transform: scale(1.25);
    transform-origin: center center;
  }
  .site-header.is-scrolled .menu-toggle,
  .site-header.is-scrolled .header-actions,
  .site-header.is-scrolled .nav-links {
    display: none;
  }
  /* Ocultar hero-lang-switch al scrollear */
  html.is-page-scrolled .hero-lang-switch {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .header-shell {
    padding: 14px 0;
  }

  .brand img {
    width: 126px;
  }

  .hero {
    min-height: 92svh;
    padding: 128px 18px 86px;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(42px, 12.6vw, 66px);
    line-height: .92;
  }

  .hero-content {
    min-height: 0;
  }

  html[lang="fr"] .hero h1 {
    max-width: 13ch;
    font-size: clamp(38px, 10.4vw, 56px);
    line-height: .94;
  }

  .hero p {
    max-width: 34rem;
    font-size: 16px;
    line-height: 1.58;
  }

  html[lang="fr"] .hero p {
    font-size: 15px;
    line-height: 1.52;
  }

  .hero-proofline {
    display: grid;
    gap: 8px;
    margin-top: 24px;
    padding-top: 14px;
  }

  .hero-proofline span + span::before {
    display: none;
  }

  .hero-materials {
    bottom: 24px;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  html[lang="fr"] .hero-materials {
    font-size: 8px;
    gap: 7px 16px;
  }

  .hero-materials span + span::before {
    left: -10px;
    height: 9px;
  }

  .hero-mode-toggle {
    position: fixed;
    right: 70px;   /* a la izquierda del botón hamburguesa */
    top: 38px;     /* centrado verticalmente en el header */
    bottom: auto;
    z-index: 31;
  }

  .hero-mode-toggle button {
    min-width: 42px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }

  .board-note,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .service-layout,
  .gallery {
    grid-template-columns: 1fr;
  }

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

  .process-col,
  .process-col:nth-child(even),
  .process-col:nth-child(5) {
    border-right: none;
    border-bottom: 1px solid rgba(247, 245, 239, .07);
    grid-column: auto;
  }

  .process-col:last-child {
    border-bottom: none;
  }

  .process-col:nth-child(5) .process-col-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .proof-strip {
    padding: 52px 18px;
  }

  .proof-grid div {
    min-height: auto;
    padding: 22px 0;
  }

  .split-section,
  .services-section,
  .work-section,
  .process-section,
  .reviews-section,
  .area-section,
  .faq-section {
    padding: 72px 18px;
  }

  .process-section {
    padding-top: 15px;
  }

  .work-header {
    align-items: start;
    flex-direction: column;
  }

  .material-board,
  .material-board img,
  .service-large img,
  .gallery figure {
    min-height: 360px;
  }

  .site-footer {
    text-align: left;
  }
}

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

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

  .promo-text {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 0 !important;
  }

  .promo-text:first-child {
    opacity: 1 !important;
  }

  .loader-word,
  .loader-logo {
    animation: none !important;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(1);
  }

  .material-note {
    animation: none !important;
    opacity: 1;
    filter: none;
  }

  .material-note:nth-child(1) {
    top: 0;
    right: 8px;
  }

  .material-note:nth-child(2) {
    top: 28%;
    right: 88px;
  }

  .material-note:nth-child(3) {
    right: 0;
    bottom: 28%;
  }

  .material-note:nth-child(4) {
    left: 0;
    bottom: 16%;
  }

  .material-note:nth-child(5) {
    left: 34px;
    top: 18%;
  }
}

/* ── ESTIMATE + TRUST ───────────────────────────────────────────── */
.estimate-section {
  background: var(--graphite);
  border-top: 1px solid rgba(196,149,50,.12);
  padding: 20px 0 clamp(56px, 7vw, 96px);
}
.estimate-inner {
  display: grid;
  grid-template-columns: 600px 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-right: clamp(20px, 5vw, 72px);
  position: relative;
}
.estimate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(196,149,50,.75);
  margin-bottom: 14px;
}
.estimate-title {
  font-family: var(--display);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  line-height: 1.15;
  margin-bottom: 40px;
}

.et-thin {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 300;
  color: rgba(248,245,238,.35);
  letter-spacing: .01em;
}

.et-bold {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 800;
  color: var(--porcelain);
  letter-spacing: -.03em;
  line-height: 1;
}

.et-sub {
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 600;
  color: var(--brass);
  letter-spacing: .02em;
  margin-top: 6px;
}
.estimate-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.estimate-step {
  background: rgba(248,245,238,.03);
  border: 1px solid rgba(248,245,238,.08);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .2s;
}
.estimate-step:focus-within {
  border-color: rgba(196,149,50,.35);
  background: rgba(248,245,238,.05);
}

/* Step header: badge + label */
.step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(196,149,50,.15);
  border: 1px solid rgba(196,149,50,.35);
  color: var(--brass);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--display);
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(248,245,238,.45);
}

.estimate-field { position: relative; }
.estimate-input,
.estimate-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(248,245,238,.12);
  color: var(--porcelain);
  font-family: var(--body);
  font-size: 15px;
  padding: 6px 32px 6px 0;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.estimate-input::placeholder { color: rgba(248,245,238,.25); }
.estimate-input:focus,
.estimate-select:focus { border-bottom-color: rgba(196,149,50,.6); }
.estimate-select { appearance: none; cursor: pointer; }
.estimate-select option { background: #1a1c1e; color: var(--porcelain); }
.estimate-input-icon,
.estimate-chevron {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(248,245,238,.25);
  pointer-events: none;
}
.estimate-textarea {
  width: 100%;
  background: transparent;
  resize: none;
  line-height: 1.6;
  border: none;
  border-bottom: 1px solid rgba(248,245,238,.12);
  border-radius: 0;
  padding: 6px 0;
  font-size: 15px;
  font-family: var(--body);
  color: var(--porcelain);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.estimate-textarea::placeholder { color: rgba(248,245,238,.25); }
.estimate-textarea:focus { border-bottom-color: rgba(196,149,50,.6); }

.estimate-btn {
  width: 100%;
  background: var(--brass);
  color: var(--ink);
  border: none;
  border-radius: 12px;
  padding: 15px 28px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.estimate-btn::after {
  content: '→';
  font-size: 16px;
}
.estimate-btn:hover { opacity: .88; }
.estimate-btn:active { transform: scale(.98); }

.estimate-form-col {
  display: flex;
  flex-direction: column;
}


.estimate-lower-band {
  position: absolute;
  border: 1px solid rgba(248,245,238,.1);
  border-radius: 14px;
  background: rgba(248,245,238,.03);
  pointer-events: auto;
  overflow: hidden;
}

/* ── Gallery marquee (lower band) ── */
.marquee-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.marquee-track {
  display: flex;
  gap: 8px;
  will-change: transform;
  flex-shrink: 0;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.marquee-row--fwd .marquee-track {
  animation: marquee-fwd 55s linear infinite;
}

.marquee-row--rev .marquee-track {
  animation: marquee-rev 68s linear infinite;
}

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

.marquee-img {
  height: 100%;
  width: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  transition: transform .35s ease, opacity .35s ease;
  opacity: .88;
}

.marquee-img:hover {
  transform: scale(1.06);
  opacity: 1;
}

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

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

.estimate-extra-col {
  border: 1px solid rgba(248,245,238,.1);
  border-radius: 14px;
  background: rgba(248,245,238,.03);
  align-self: start;
  margin-top: 20px;
  margin-right: calc(-1 * clamp(20px, 5vw, 72px) + 40px);
  overflow: hidden;
}

/* ── Before / After preview (col 3) ── */
.reno-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 13px;
}

.reno-pair {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}

.reno-pair.is-active {
  opacity: 1;
  pointer-events: auto;
}

.reno-slot {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.reno-slot:first-child {
  border-bottom: 1px solid rgba(248,245,238,.12);
}

.reno-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .6s var(--ease);
}

.reno-slot:hover img {
  transform: scale(1.03);
}

.reno-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.reno-tag--before {
  background: rgba(12,13,14,.58);
  color: #ffffff;
  border: 1px solid rgba(248,245,238,.38);
}

.reno-tag--after {
  background: rgba(12,13,14,.58);
  color: #ffffff;
  border: 1px solid rgba(196,149,50,.55);
}

.reno-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(248,245,238,.55);
  line-height: 1.7;
  letter-spacing: .04em;
  transition: opacity .35s ease;
  padding: 24px;
  background:
    linear-gradient(rgba(12,13,14,.62), rgba(12,13,14,.62)),
    url('../antes_despues/testura_premium.jpeg') center / cover no-repeat;
  border-radius: 13px;
}

.reno-empty svg {
  opacity: 1;
  margin-bottom: 12px;
  color: #ffffff;
}

.reno-empty span {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.8;
}

.reno-preview.has-selection .reno-empty {
  opacity: 0;
  pointer-events: none;
}
/* ── Postal code validation states ── */
.estimate-input.postal-valid {
  border-color: rgba(196,149,50,.55);
  background: rgba(196,149,50,.04);
}

.estimate-input.postal-valid ~ .estimate-input-icon {
  color: rgba(196,149,50,.7);
}

.estimate-input.postal-invalid {
  border-color: rgba(220,80,60,.55);
  background: rgba(220,80,60,.04);
  animation: shake .35s var(--ease);
}

.estimate-input.postal-invalid ~ .estimate-input-icon {
  color: rgba(220,80,60,.7);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  60%      { transform: translateX(5px); }
  80%      { transform: translateX(-3px); }
}

.estimate-result {
  display: flex;
  position: absolute;
  z-index: 20;
  flex-direction: column;
  border-radius: 14px;
  background: rgba(12,13,14,.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(196,149,50,.28);
  box-shadow: 0 28px 72px rgba(0,0,0,.6);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  will-change: transform, opacity;
  transition:
    opacity   .42s cubic-bezier(.22, 1, .36, 1),
    transform .42s cubic-bezier(.22, 1, .36, 1),
    visibility 0s   .42s;
}
.estimate-result.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity   .42s cubic-bezier(.22, 1, .36, 1),
    transform .42s cubic-bezier(.22, 1, .36, 1),
    visibility 0s   0s;
}
.estimate-result-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(248,245,238,.35);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color .2s;
  z-index: 2;
}
.estimate-result-close:hover { color: var(--brass); }

/* ── Result body: two-column layout ── */
.er-body {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* Left column */
.er-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 40px;
  width: 46%;
  flex-shrink: 0;
  border-right: 1px solid rgba(248,245,238,.07);
}
.er-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(248,245,238,.35);
  margin-bottom: 10px;
}
.estimate-result-range {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 800;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 12px;
}
.er-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248,245,238,.5);
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.er-timeline {
  font-size: 12px;
  color: rgba(248,245,238,.4);
  margin-bottom: 24px;
  padding: 7px 12px;
  background: rgba(248,245,238,.05);
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
}
.estimate-result-note {
  font-size: 11.5px;
  color: rgba(248,245,238,.35);
  line-height: 1.7;
  margin-bottom: 22px;
}
.estimate-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--porcelain);
  text-decoration: none;
  background: rgba(196,149,50,.14);
  border: 1px solid rgba(196,149,50,.35);
  border-radius: 8px;
  padding: 10px 18px;
  transition: background .2s, border-color .2s, color .2s;
}
.estimate-result-cta:hover {
  background: rgba(196,149,50,.22);
  border-color: rgba(196,149,50,.65);
  color: var(--brass);
}

/* Right column — breakdown */
.er-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 36px;
  overflow-y: auto;
  min-width: 0;
}
.er-breakdown-header {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(248,245,238,.28);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(248,245,238,.08);
  margin-bottom: 6px;
}
.er-breakdown {
  flex: 1;
}
.er-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(248,245,238,.05);
  gap: 12px;
}
.er-item-label {
  font-size: 12.5px;
  color: rgba(248,245,238,.65);
  font-weight: 400;
}
.er-item-range {
  font-size: 12px;
  color: rgba(248,245,238,.5);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.er-breakdown-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  margin-top: 6px;
  border-top: 1px solid rgba(196,149,50,.3);
}
.er-breakdown-total span:first-child {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(248,245,238,.5);
}
.er-breakdown-total span:last-child {
  font-size: 14px;
  font-weight: 800;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
/* Botón cerrar inferior — oculto en desktop */
.er-close-bottom { display: none; }

/* Backdrop blur — oculto en desktop */
.estimate-backdrop { display: none; }

/* ── Trust statement card (left column) ── */
.estimate-trust-col {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(248,245,238,.1);
  background: #0e1012;
  min-height: 480px;
  margin-left: 40px;
  margin-top: 20px;
}

/* Background image with dark overlay */
.trust-bg {
  position: absolute;
  inset: 0;
  background-image: url('../variaciones/contemporary_marble.jpeg');
  background-size: cover;
  background-position: center 30%;
  opacity: .16;
  filter: grayscale(.5) brightness(.5);
  z-index: 0;
}

.trust-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    rgba(12,13,14,.15) 0%,
    rgba(12,13,14,.72) 55%,
    rgba(12,13,14,.97) 100%
  );
}

/* All content above the overlay */
.trust-content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.trust-eyebrow-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(196,149,50,.65);
  margin: 0 0 clamp(24px, 3.5vw, 44px);
}

/* Mixed-weight headline — the visual anchor */
.trust-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  padding-bottom: clamp(24px, 3vw, 40px);
  perspective: 320px;
}

.trust-h-thin,
.trust-h-bold,
.trust-h-accent {
  display: block;
  text-align: left;
  opacity: 0;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1º — cara del cubo desde arriba, gira hacia abajo */
.trust-h-thin   { transform-origin: top center;    transform: rotateX(-90deg); }
/* 2º — cara del cubo desde abajo, gira hacia arriba */
.trust-h-bold   { transform-origin: bottom center; transform: rotateX(90deg);  }
/* 3º — cara del cubo desde arriba, gira hacia abajo */
.trust-h-accent { transform-origin: top center;    transform: rotateX(-90deg); }

.trust-h-thin.is-block-visible   { transform: rotateX(0deg); opacity: 1; transition-delay: 0s;   }
.trust-h-bold.is-block-visible   { transform: rotateX(0deg); opacity: 1; transition-delay: .35s; }
.trust-h-accent.is-block-visible { transform: rotateX(0deg); opacity: 1; transition-delay: .70s; }

.trust-h-thin {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 300;
  color: rgba(248,245,238,.28);
  letter-spacing: -.035em;
  line-height: 1.0;
}

.trust-h-bold {
  font-family: var(--display);
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 800;
  color: var(--porcelain);
  letter-spacing: -.045em;
  line-height: .96;
}

.trust-h-accent {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 66px);
  font-weight: 800;
  color: var(--brass);
  letter-spacing: -.045em;
  line-height: .96;
}

@media (prefers-reduced-motion: reduce) {
  .trust-h-thin, .trust-h-bold, .trust-h-accent {
    transform: none; opacity: 1; transition: none;
  }
}

/* Big stat number */
.trust-stat-anchor {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: clamp(24px, 3.5vw, 44px) 0 clamp(20px, 3vw, 36px);
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid rgba(248,245,238,.1);
}

.trust-big-num {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 82px);
  font-weight: 800;
  color: var(--porcelain);
  letter-spacing: -.045em;
  line-height: 1;
}

.trust-big-num sup {
  font-size: .42em;
  font-weight: 500;
  color: var(--brass);
  vertical-align: super;
  letter-spacing: 0;
}

.trust-big-label {
  font-size: clamp(12px, 1.2vw, 14px);
  color: rgba(248,245,238,.42);
  line-height: 1.55;
}

/* ── Trust stats ── */
.trust-stats {
  width: calc(100% + clamp(28px, 4vw, 48px));
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(248,245,238,.1);
}

.trust-stat {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(18px, 2.5vw, 28px) 0;
  border-bottom: 1px solid rgba(248,245,238,.07);
}

.trust-stat:last-child { border-bottom: none; }

/* Testimonial stat — full width, no number column */
.trust-stat--quote {
  display: block;
  padding: clamp(20px, 2.5vw, 28px) 0;
}

.trust-quote {
  margin: 0;
  padding: 0 clamp(20px, 3vw, 32px) 0 0;
}

.trust-quote-text {
  font-family: var(--display);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--porcelain);
  line-height: 1.45;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}

.trust-quote-text::before {
  content: '\201C';
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.3em;
  color: var(--brass);
  margin-right: 3px;
  font-style: normal;
}

.trust-quote-text::after {
  content: '\201D';
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.3em;
  color: var(--brass);
  margin-left: 3px;
  font-style: normal;
}

.trust-quote-author {
  display: block;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  color: rgba(248,245,238,.38);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-style: normal;
}

.trust-stat-num {
  font-family: var(--display);
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 800;
  color: var(--brass);
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  width: clamp(80px, 11vw, 140px);
  text-align: left;
}

.trust-stat-currency {
  font-size: .48em;
  font-weight: 500;
  color: rgba(196,149,50,.55);
  vertical-align: super;
  letter-spacing: 0;
}

.trust-stat-suffix {
  font-size: .52em;
  font-weight: 500;
  color: rgba(196,149,50,.55);
  vertical-align: baseline;
  letter-spacing: 0;
  margin-left: 2px;
}

.trust-stat-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding-right: clamp(20px, 3vw, 32px);
  flex-shrink: 0;
}

.trust-stat-label {
  display: block;
  font-family: var(--display);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--porcelain);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.trust-stat-desc {
  font-size: clamp(11px, 1vw, 13px);
  color: rgba(248,245,238,.4);
  line-height: 1.6;
  margin: 0;
  max-width: 240px;
}

@media (max-width: 820px) {
  .estimate-inner { grid-template-columns: 1fr; }
  .estimate-trust-col { min-height: 360px; }
  .trust-content { padding: clamp(28px, 5vw, 40px); }
  .trust-pillars { display: flex; gap: 0; }
  .trust-pillar {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px 14px 0;
    border-bottom: none;
    border-right: 1px solid rgba(248,245,238,.06);
  }
  .trust-pillar:last-child { border-right: none; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-pillar { animation: none; opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MAP SECTION
   No rules existed; grid was desktop-only.
═══════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .map-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  /* HTML order: copy first, frame second — natural stacking, no reorder needed */
  .map-copy  { padding: clamp(48px,7vw,80px) clamp(24px,5vw,56px) clamp(36px,5vw,56px); }
  .map-frame { height: 420px; }
  /* Gradient switches direction: map is now below copy, not beside it */
  .map-frame::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, var(--ink) 0%, transparent 100%);
  }
  #gtaMap { min-height: 420px; }
}

@media (max-width: 620px) {
  .map-copy  { padding: 48px 20px 32px; }
  .map-heading { font-size: clamp(28px,9vw,44px); }
  .map-body  { font-size: 14px; }
  .map-frame { height: 280px; }
  #gtaMap    { min-height: 280px; }
  .map-stats {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
  }
  .map-stat {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 0;
  }
  .map-stat-divider { width: 100%; height: 1px; flex-shrink: 0; }
  .map-stat:first-child { padding-top: 0; }
  .map-stat:last-child  { padding-bottom: 0; }
  .map-stat-number { font-size: 20px; }
  .map-cta { width: 100%; justify-content: center; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — FAQ SECTION
   No rules existed; accordion was 46% wide on mobile.
═══════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  .faq-accordion {
    max-width: 100%;
    padding: clamp(40px,6vw,64px) clamp(20px,5vw,48px);
  }
  /* Gradient switches direction: now top → bottom so it fades
     the background image downward instead of left → right */
  .faq-body-fade {
    background: linear-gradient(to bottom,
      var(--graphite)           0%,
      rgba(26,28,30,.90)       40%,
      rgba(26,28,30,.52)       65%,
      transparent             100%
    );
  }
  .faq-panel { width: 88%; }
  /* Caption overlaps content at narrow widths */
  .faq-img-tag { display: none; }
}

@media (max-width: 620px) {
  .faq-header { padding: clamp(40px,8vw,64px) 20px clamp(44px,8vw,68px); }
  .faq-heading { font-size: clamp(38px,11.5vw,60px); }

  /* Turn slide-in panel into a bottom sheet */
  .faq-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 82svh;
    border-left: none;
    border-top: 1px solid rgba(196,149,50,.22);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .faq-panel.is-open  { transform: translateY(0); }
  .faq-panel-close    { top: 16px; right: 18px; }
  .faq-panel-q        { font-size: clamp(17px,5vw,22px); }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — ESTIMATE SECTION
   Lower-band + extra-col are JS-positioned in 3-col mode.
   At ≤820px the grid becomes 1-col; we need static layout.
═══════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  .estimate-inner {
    padding-right: clamp(18px,5vw,36px);
  }
  /* Trust card: remove desktop-only left margin */
  .estimate-trust-col {
    margin-left: 0;
    margin-top: 0;
    border-radius: 16px;
  }
  /* Before/after preview column: hide — form + trust carry the section */
  .estimate-extra-col { display: none; }

  /* Lower band: override JS-set absolute positioning, become static */
  .estimate-lower-band {
    position: static !important;
    height: 160px !important;
    left: auto !important; right: auto !important; top: auto !important;
    border-radius: 12px;
    margin-top: 16px;
  }

  /* Result overlay: fixed full-screen modal on mobile */
  /* Overlay oscuro — solo visible cuando modal está abierto */
  .estimate-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(8, 10, 12, 0.45);
    pointer-events: none;
  }
  .estimate-backdrop.active {
    display: block;
    pointer-events: auto;
  }

  /* Blur gaussiano sobre el fondo sin atrapar el bottom sheet dentro del filtro */
  body.estimate-open .estimate-trust-col,
  body.estimate-open .estimate-form-col,
  body.estimate-open .estimate-extra-col,
  body.estimate-open .estimate-lower-band,
  body.estimate-open .hero,
  body.estimate-open .style-explorer-section {
    filter: blur(6px);
    transition: filter 0.3s ease;
  }

  /* Cuando modal abierto: ocultar nav, bloquear scroll de página */
  body.estimate-open {
    overflow: hidden;
  }
  body.estimate-open .estimate-inner {
    transform: none !important;
  }
  body.estimate-open .site-header {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  /* Bottom sheet */
  .estimate-result {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 84vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 80;
    pointer-events: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6) !important;
    /* Bottom sheet desliza desde abajo */
    transform: translateY(100%);
  }

  .er-body {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
    -webkit-overflow-scrolling: touch;
  }
  .er-left {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(248,245,238,.07);
    padding: 32px 24px 20px;
  }
  .er-right { padding: 20px 24px 32px; }
}

@media (max-width: 620px) {
  .estimate-lower-band { height: 130px !important; }
  .estimate-trust-col  { min-height: 320px; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — PROCESS TESTIMONIAL
   At 980px the header goes 1-col; the card height
   is unconstrained and can run very tall on tablet.
═══════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .process-testimonial {
    min-height: 0;
    max-height: 280px;
  }
}

@media (max-width: 700px) {
  .process-testimonial {
    flex: none !important;         /* cancela flex:1 que permite crecer */
    height: 265px !important;
    min-height: 265px !important;
    max-height: 265px !important;
    overflow: hidden !important;
  }
  .process-header {
    padding: 0 18px clamp(28px,4vw,44px);
  }
  .process-header-rule {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — HERO ACTIONS
   Buttons should stack cleanly on very small screens.
═══════════════════════════════════════════════════════ */

@media (max-width: 400px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — AUTHORITY BAND
   On very small screens the stats band overflows.
═══════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  .authority-stats {
    flex-wrap: wrap;
    gap: 0;
    row-gap: 2px;
    padding: 14px 16px;
  }
  .authority-stat {
    min-width: calc(50% - 1px);
    padding: 10px clamp(6px,3vw,14px);
    border-right: none;
    border-bottom: 1px solid rgba(247,245,239,.07);
  }
  .authority-stat:nth-child(odd)  { border-right: 1px solid rgba(247,245,239,.07); }
  .authority-stat:nth-child(n+5)  { border-bottom: none; }
  .authority-divider { display: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — FOOTER
   Footer is 3-col (logo | text | link); stack on mobile.
═══════════════════════════════════════════════════════ */

@media (max-width: 620px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    padding: 28px 20px;
    /* Safe-area bottom inset for devices with home indicator */
    padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  }
  .site-footer img { width: 120px; }
  .footer-links {
    justify-content: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════
   SAFE AREA — Notch / home indicator support
═══════════════════════════════════════════════════════ */

@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-left:  env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    transition: opacity 0.2s ease;
  }
  .hero {
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* ═══════════════════════════════════════════════════════
   MOBILE PORTRAIT — ajustes específicos hero
   Solo aplica en pantallas ≤ 700px en orientación vertical
═══════════════════════════════════════════════════════ */
@keyframes materialsTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
