/* ==========================================================================
   Grupo Navarro · hoja de estilos única
   Sin frameworks. Mundo visual: el escaparate de un despacho al atardecer.
   Azul marino como cristal, crema como paspartú, terracota solo en etiquetas
   y acciones.
   ========================================================================== */

@font-face {
  font-family: 'Source Serif 4';
  src: url('/fonts/source-serif-4.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Albert Sans';
  src: url('/fonts/albert-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0f2239;
  --navy: #1e3a5f;
  --cream: #f5f0e9;
  --paper: #fbf8f3;
  --sand: #e8dfd2;
  --terra: #d67a4a;
  --terra-deep: #93441f;
  --ink: #16283d;
  --text: #3b4757;
  --muted: #536074;
  --rule: rgba(30, 58, 95, 0.2);
  --rule-soft: rgba(30, 58, 95, 0.12);
  --rule-light: rgba(251, 248, 243, 0.22);

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 84px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reinicio ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--terra-deep);
  accent-color: var(--navy);
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

::selection {
  background: var(--terra);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

html {
  scrollbar-color: var(--navy) var(--cream);
  scrollbar-width: thin;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
}

.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

/* ---------- Tipografía ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-wrap: balance;
  font-optical-sizing: auto;
}

h2 {
  font-size: clamp(2.1rem, 2.5vw + 1rem, 3.6rem);
}

h3 {
  font-size: clamp(1.55rem, 1.2vw + 1.1rem, 2.1rem);
  line-height: 1.2;
}

h3.minor {
  font-family: var(--body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

h4,
.minor {
  font-family: var(--body);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 38rem;
}

.prose {
  max-width: 44rem;
}

.prose p + p,
.prose p + h3,
.prose ul + p {
  margin-top: 1.2em;
}

.prose h3 {
  margin-top: 2.2em;
}

.prose ul {
  margin-top: 1em;
}

/* ---------- Estructura ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(72px, 10vw, 148px);
}

.section--sand {
  background: var(--sand);
}

.section--paper {
  background: var(--paper);
}

.section--night {
  background: var(--navy);
  color: rgba(251, 248, 243, 0.82);
}

.section--night .lead {
  color: rgba(251, 248, 243, 0.86);
}

.section--night h2,
.section--night h3,
.section--night h4,
.section--night strong {
  color: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-head--single {
  grid-template-columns: minmax(0, 52rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.split--reverse > :first-child {
  order: 2;
}

@media (max-width: 900px) {
  .section-head,
  .split,
  .split--wide-left {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse > :first-child {
    order: 0;
  }
}

.stack > * + * {
  margin-top: 1.5rem;
}

/* ---------- Iconos ---------- */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  background: var(--terra-deep);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--terra {
  background: var(--terra);
  color: var(--night);
}

.btn--terra:hover {
  background: var(--paper);
  color: var(--night);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 248, 243, 0.6);
}

.btn--ghost:hover {
  background: rgba(251, 248, 243, 0.12);
  border-color: var(--paper);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--terra);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.3s;
}

.text-link:hover {
  gap: 0.85rem;
  color: var(--terra-deep);
}

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(245, 240, 233, 0.94);
  border-bottom: 1px solid var(--rule-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.site-header__logo img {
  width: 150px;
  height: auto;
}

.logo--light {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--terra);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__phone .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--rule);
  color: inherit;
}

.mobile-nav {
  display: none;
}

/* cabecera sobre la portada: transparente hasta hacer scroll */
.site-header--over:not(.is-solid) {
  background: transparent;
  border-bottom-color: var(--rule-light);
  color: var(--paper);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header--over:not(.is-solid) .logo--dark {
  display: none;
}

.site-header--over:not(.is-solid) .logo--light {
  display: block;
}

@media (max-width: 1040px) {
  .site-nav,
  .site-header__phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 32px var(--gutter) 40px;
    background: var(--night);
    color: var(--paper);
    overflow-y: auto;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule-light);
    font-family: var(--display);
    font-size: 2rem;
    text-decoration: none;
  }

  .mobile-nav .btn {
    font-family: var(--body);
    font-size: 1.05rem;
    border-bottom: 1px solid transparent;
  }
}

/* ---------- Portada: el escaparate ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 48px) 72px;
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 30%;
}

.hero__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 34, 57, 0.96) 0%, rgba(30, 58, 95, 0.82) 45%, rgba(30, 58, 95, 0.5) 100%),
    linear-gradient(0deg, rgba(15, 34, 57, 0.9), rgba(15, 34, 57, 0) 40%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: rise 1s var(--ease) both;
}

.hero__title {
  order: 1;
  color: var(--paper);
  font-size: clamp(2.7rem, 3.9vw + 0.7rem, 4.9rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__brand {
  order: 2;
  display: block;
  margin-top: 1.75rem;
  font-family: var(--body);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--paper);
}

.hero__brand::before {
  content: '';
  display: inline-block;
  width: 3.25rem;
  height: 2px;
  margin-right: 1rem;
  vertical-align: middle;
  background: var(--terra);
}

.hero__brand span {
  font-weight: 400;
  opacity: 0.78;
}

.hero__lead {
  order: 3;
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem);
  color: rgba(251, 248, 243, 0.88);
}

.hero__actions {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.25rem;
}

.window {
  position: relative;
  padding-top: 22px;
  animation: rise 1.1s 0.15s var(--ease) both;
}

.window__rail {
  position: absolute;
  top: 0;
  left: -2%;
  right: -2%;
  height: 1px;
  background: rgba(251, 248, 243, 0.55);
}

.window__rail::before,
.window__rail::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(251, 248, 243, 0.7);
  background: var(--night);
  border-radius: 50%;
}

.window__rail::before {
  left: 0;
}

.window__rail::after {
  right: 0;
}

.window__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  align-items: start;
}

.window__row > li:nth-child(1) {
  --hang: 26px;
}

.window__row > li:nth-child(2) {
  --hang: 84px;
}

.window__row > li:nth-child(3) {
  --hang: 44px;
}

.window__note {
  margin-top: 28px;
  font-size: 0.9rem;
  color: rgba(251, 248, 243, 0.7);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1000px) {
  .hero {
    align-items: flex-start;
    padding-bottom: 56px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .window {
    margin-top: 16px;
  }

  .window__row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 0 var(--gutter) 12px;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: none;
  }

  .window__row > li {
    flex: 0 0 min(72%, 280px);
    --hang: 26px !important;
    scroll-snap-align: start;
  }
}

/* ---------- Cuadro colgado (placard) ---------- */
.placard {
  position: relative;
  padding-top: var(--hang, 26px);
}

.placard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--hang, 26px);
  background: rgba(251, 248, 243, 0.55);
}

.placard__link {
  position: relative;
  display: block;
  padding: 10px 10px 18px;
  background: var(--cream);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.5s var(--ease);
}

.placard__link:hover {
  transform: translateY(-4px);
}

.placard__photo {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}

.placard__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.placard__link:hover .placard__photo img {
  transform: scale(1.04);
}

.placard__tag {
  position: absolute;
  left: 0;
  top: 14px;
  padding: 5px 12px 5px 10px;
  background: var(--terra);
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.placard__tag--sold {
  background: var(--night);
  color: var(--paper);
}

.placard__body {
  padding: 14px 6px 0;
}

.section--night .placard__title,
.placard__title {
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.placard__price {
  margin-top: 2px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 0.9vw + 1.1rem, 1.95rem);
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  color: var(--navy);
  font-variant-numeric: lining-nums;
}

.placard__meta {
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Ficha (formulario) ---------- */
.sheet {
  position: relative;
  padding: clamp(24px, 3vw, 44px);
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 8px var(--rule-soft);
}

.sheet h2,
.sheet h3 {
  font-size: clamp(1.8rem, 1.3vw + 1.2rem, 2.4rem);
}

.sheet > p,
.sheet__intro {
  margin-top: 0.75rem;
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}

.tabs button {
  position: relative;
  padding: 0 0 14px;
  background: none;
  border: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.tabs button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--terra);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}

.tabs button[aria-selected='true'] {
  color: var(--ink);
}

.tabs button[aria-selected='true']::after {
  transform: scaleX(1);
}

.perk {
  margin-top: 1.5rem;
  padding: 14px 16px;
  background: var(--sand);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}

.perk strong {
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-underline-offset: 0.2em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 1.5rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(30, 58, 95, 0.28);
  border-radius: 0;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field::placeholder {
  color: #66717f;
}

.field:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(214, 122, 74, 0.35);
}

textarea.field {
  min-height: 7rem;
  resize: vertical;
}

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.check {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
}

.check input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
}

.feedback {
  padding: 14px 16px;
  border: 1px solid;
  font-size: 0.98rem;
}

.feedback--ok {
  border-color: #2f6b4f;
  background: #e6f0ea;
  color: #1d4a35;
}

.feedback--error {
  border-color: #9c3a2a;
  background: #f6e4df;
  color: #6f2316;
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Listas con filetes ---------- */
.ledger > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1.15rem;
  border-top: 1px solid var(--rule);
}

.ledger > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.ledger .icon {
  margin-top: 0.15rem;
  color: var(--terra-deep);
}

.section--night .ledger > li {
  border-color: var(--rule-light);
}

.section--night .ledger .icon {
  color: var(--terra);
}

.fact {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
  font-size: 1.05rem;
}

.fact .icon {
  width: 2rem;
  height: 2rem;
  color: var(--terra-deep);
}

/* ---------- Fotos enmarcadas ---------- */
.frame {
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}

.frame img {
  width: 100%;
  object-fit: cover;
}

.frame--tall img {
  aspect-ratio: 3 / 4;
}

.frame--wide img {
  aspect-ratio: 3 / 2;
}

.frame figcaption {
  padding: 12px 4px 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Lista de servicios (filas) ---------- */
.rows > li {
  border-top: 1px solid var(--rule);
}

.rows > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.row-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
  gap: clamp(16px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 8px;
  text-decoration: none;
  transition: background-color 0.4s var(--ease);
}

.row-link:hover {
  background: rgba(232, 223, 210, 0.6);
}

.row-link h3 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.6rem);
}

.row-link p {
  color: var(--text);
}

.row-link .icon {
  width: 2rem;
  height: 2rem;
  color: var(--terra-deep);
  transition: transform 0.4s var(--ease);
}

.row-link:hover .icon {
  transform: translateX(6px);
}

@media (max-width: 760px) {
  .row-link {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .row-link p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---------- Columnas con filetes (sin tarjetas) ---------- */
.columns {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 0;
}

.columns--2 {
  --cols: 2;
}

.columns--4 {
  --cols: 4;
}

.column {
  padding: 28px clamp(16px, 2.4vw, 40px) 36px 0;
  border-top: 1px solid var(--rule);
}

.column + .column {
  padding-left: clamp(16px, 2.4vw, 40px);
}

.column h3,
.column h4 {
  margin-bottom: 0.6rem;
}

.column h3 {
  font-size: clamp(1.6rem, 1.2vw + 1.1rem, 2.2rem);
}

.column ul {
  margin-top: 1rem;
}

.column li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
  font-size: 0.98rem;
}

.column li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 1px;
  background: var(--terra-deep);
}

.step-number {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--terra-deep);
}

.section--night .column {
  border-color: var(--rule-light);
}

@media (max-width: 900px) {
  .columns,
  .columns--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .column,
  .column + .column {
    padding-inline: 0;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .columns--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .columns--4 .column:nth-child(odd) {
    padding-left: 0;
  }
}

/* ---------- Dos caminos: vender / comprar ---------- */
.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.path {
  padding: clamp(28px, 4vw, 56px);
  background: var(--navy);
  color: rgba(251, 248, 243, 0.86);
}

.path h3 {
  color: var(--paper);
  font-size: clamp(2.1rem, 2vw + 1.2rem, 3.2rem);
  margin-bottom: 1.5rem;
}

.path .ledger > li {
  padding-block: 0.9rem;
  border-color: var(--rule-light);
}

.path .ledger .icon {
  color: var(--terra);
}

@media (max-width: 900px) {
  .paths {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Prensa ---------- */
.press {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 56px;
}

.press img {
  height: 30px;
  width: auto;
  filter: grayscale(1) contrast(1.25);
  opacity: 0.85;
  transition: opacity 0.3s, filter 0.3s;
}

.press img:hover {
  opacity: 1;
  filter: none;
}

/* ---------- Reseñas ---------- */
.rating {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.rating__value {
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.9;
  color: var(--paper);
}

.stars {
  color: var(--terra);
  letter-spacing: 0.12em;
  font-size: 1.2rem;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.quote {
  padding: 28px 28px 36px 0;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.quote:nth-child(even) {
  padding-left: 28px;
  padding-right: 0;
}

.quote blockquote {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(251, 248, 243, 0.9);
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--paper);
}

.quote figcaption img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.quote .stars {
  font-size: 0.8rem;
  display: block;
  margin-top: 2px;
}

.quote time {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.7;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 980px) {
  .reviews-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .quotes {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote,
  .quote:nth-child(even) {
    padding-inline: 0;
  }
}

/* ---------- Escaparate de inmuebles (carrusel) ---------- */
.shop-window {
  position: relative;
  padding-top: 22px;
}

.shop-window .window__rail {
  left: 0;
  right: 0;
}

.shop-window__track {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.shop-window__track::-webkit-scrollbar {
  display: none;
}

.shop-window__track > .placard {
  flex: 0 0 calc((100% - 3 * clamp(14px, 2vw, 28px)) / 4);
  scroll-snap-align: start;
}

.shop-window__controls {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.shop-window__controls button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(251, 248, 243, 0.5);
  color: var(--paper);
  transition: background-color 0.3s, color 0.3s;
}

.shop-window__controls button:hover {
  background: var(--paper);
  color: var(--night);
}

.shop-window__status {
  padding: 40px 0;
  color: rgba(251, 248, 243, 0.8);
}

@media (max-width: 1100px) {
  .shop-window__track > .placard {
    flex-basis: calc((100% - 2 * clamp(14px, 2vw, 28px)) / 3);
  }
}

@media (max-width: 800px) {
  .shop-window__track > .placard {
    flex-basis: calc((100% - clamp(14px, 2vw, 28px)) / 2);
  }
}

@media (max-width: 520px) {
  .shop-window__track > .placard {
    flex-basis: 82%;
  }
}

/* ---------- Mapa ---------- */
.map {
  position: relative;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
}

.map iframe {
  width: 100%;
  height: clamp(320px, 42vw, 480px);
  border: 0;
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  max-width: 56rem;
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 0.9vw + 1rem, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--terra-deep), var(--terra-deep)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--terra-deep), var(--terra-deep)) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--terra);
  text-underline-offset: 0.2em;
}

.faq details > div {
  padding: 0 3rem 1.75rem 0.25rem;
  max-width: 44rem;
}

/* ---------- Cabecera de página interior ---------- */
.page-hero {
  padding-block: calc(var(--header-h) + clamp(48px, 7vw, 104px)) clamp(56px, 8vw, 112px);
  background: var(--cream);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 3.8vw + 0.8rem, 4.6rem);
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 1.5rem;
}

.page-hero--night {
  background: var(--night);
  color: rgba(251, 248, 243, 0.86);
}

.page-hero--night h1 {
  color: var(--paper);
}

.page-hero--night .lead {
  color: rgba(251, 248, 243, 0.86);
}

.mark {
  width: 120px;
  margin-top: 2rem;
  opacity: 0.9;
}

/* ---------- Retratos ---------- */
.portrait {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
}

.portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.portrait h3 {
  font-size: clamp(1.9rem, 1.6vw + 1.2rem, 2.8rem);
}

.portrait__role {
  margin: 0.4rem 0 1rem;
  font-weight: 600;
  color: var(--terra-deep);
}

@media (max-width: 560px) {
  .portrait {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait img {
    max-width: 280px;
  }
}

/* ---------- Pie ---------- */
.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 32px;
  background: var(--night);
  color: rgba(251, 248, 243, 0.78);
  font-size: 0.98rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
}

.site-footer img {
  width: 190px;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--paper);
}

.site-footer strong {
  color: var(--paper);
}

.path strong {
  color: var(--paper);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer li + li {
  margin-top: 0.5rem;
}

.site-footer address {
  font-style: normal;
}

.site-footer address > * + * {
  margin-top: 0.75rem;
}

.site-footer__legal {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-light);
  font-size: 0.88rem;
  color: rgba(251, 248, 243, 0.6);
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #1f9d55;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease);
}

.whatsapp:hover {
  transform: translateY(-3px);
}

.whatsapp svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* ---------- Varios ---------- */
.divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.google-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.9rem;
  margin-top: 1.5rem;
  color: inherit;
  text-decoration: none;
}

.google-badge img {
  width: 24px;
  height: 24px;
}

.google-badge .stars {
  font-size: 1rem;
}

.google-badge:hover span:last-child {
  text-decoration: underline;
}

.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__copy,
  .window {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* retrato doble de los fundadores */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.duo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* escaparate sin datos: sin riel ni flechas, solo una acción */
.shop-window.is-empty .window__rail,
.shop-window.is-empty .shop-window__controls,
.shop-window.is-empty .shop-window__track {
  display: none;
}

.shop-window.is-empty {
  padding-top: 0;
}

.shop-window__status .btn {
  margin-top: 1.25rem;
}

/* barra de acción fija en móvil */
.cta-bar {
  display: none;
}

@media (max-width: 700px) {
  .hero__actions .btn {
    width: 100%;
  }

  .cta-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: flex;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(245, 240, 233, 0.97);
    border-top: 1px solid var(--rule);
  }

  .cta-bar .btn {
    min-height: 3rem;
  }

  .cta-bar .btn:first-child {
    flex: 1;
  }

  .cta-bar .btn:last-child {
    padding-inline: 1rem;
  }

  .whatsapp {
    bottom: 84px;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

/* vídeo de la portada: difuminado y bajo el velo azul para que el texto se lea */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  opacity: 0;
  transform: scale(1.06);
  filter: blur(3px) saturate(0.85);
  transition: opacity 1.6s var(--ease);
}

.hero__video.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
}
