.home-editorial-hero {
  position: relative;
  min-height: clamp(34rem, 82svh, 58.75rem);
  background:
    radial-gradient(circle at top, rgba(32, 47, 78, 0.22), transparent 36%),
    #202f4e;
  color: #f7f8f8;
  overflow: clip;
}

.home-editorial-hero-stage {
  position: relative;
  min-height: inherit;
}

.home-editorial-hero .container,
.home-featured-services .container,
.home-featured-units .container {
  width: min(var(--home-wide-max-width), calc(100% - (2 * var(--page-inline-padding))));
  max-width: none;
}

.home-editorial-slide,
.home-editorial-slide-fallback {
  position: absolute;
  inset: 0;
}

.home-editorial-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.home-editorial-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.home-editorial-slide-media,
.home-editorial-slide-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-editorial-slide-fallback {
  background:
    linear-gradient(135deg, rgba(211, 44, 67, 0.2), transparent 48%),
    linear-gradient(180deg, #202f4e 0%, #16233b 100%);
}

.home-editorial-slide-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 47, 78, 0.68) 0%, rgba(32, 47, 78, 0.24) 42%, rgba(32, 47, 78, 0.48) 100%),
    linear-gradient(180deg, rgba(32, 47, 78, 0.08) 0%, rgba(32, 47, 78, 0.18) 100%);
}

.home-editorial-slide-layout {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: end;
  padding-top: clamp(6.5rem, 10vw, 9rem);
  padding-bottom: clamp(9.5rem, 15vw, 13rem);
}

.home-editorial-copy {
  display: grid;
  gap: 1.15rem;
  align-self: end;
  max-width: 920px;
}

.home-editorial-summary {
  margin: 0;
  max-width: 34rem;
  color: rgba(247, 248, 248, 0.84);
  font-size: 0.98rem;
  line-height: 1.74;
}

.home-editorial-eyebrow,
.home-editorial-section-kicker {
  margin: 0;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 248, 248, 0.72);
}

.home-editorial-hero-title,
.home-editorial-section-title {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 10px 30px rgba(8, 15, 28, 0.24);
}

.home-editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-editorial-actions-mobile,
.home-editorial-mobile-pills,
.home-mobile-quick-actions {
  display: none;
}

.home-editorial-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.22rem;
  border: 1px solid #f7f8f8;
  background: #f7f8f8;
  color: #202f4e;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 800;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-editorial-cta:hover {
  transform: translateY(-1px);
  background: #d32c43;
  border-color: #d32c43;
  color: #f7f8f8;
}

.home-editorial-hero .home-editorial-cta.is-secondary {
  background: transparent;
  color: #f7f8f8;
}

.home-editorial-hero .home-editorial-cta.is-secondary:hover {
  background: rgba(247, 248, 248, 0.12);
  border-color: rgba(247, 248, 248, 0.96);
}

.home-editorial-stats {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.home-editorial-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
}

.home-editorial-stat strong {
  font-size: 0.78rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-editorial-stat span {
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(247, 248, 248, 0.72);
  letter-spacing: 0.03em;
}

.home-editorial-section-head {
  display: grid;
  gap: 0.3rem;
}

.home-editorial-controls-shell {
  position: absolute;
  inset: auto 0 1.5rem 0;
  z-index: 3;
}

.home-editorial-copy.is-pinned {
  max-width: 52rem;
}

.home-editorial-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  width: 100%;
}

.home-editorial-project-shell {
  width: min(100%, 26rem);
  margin-left: auto;
  display: grid;
  align-self: end;
}

.home-editorial-progress-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.home-editorial-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
}

.home-editorial-progress-item {
  position: relative;
  width: clamp(2.6rem, 6vw, 4.4rem);
  height: 1.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-editorial-progress-line,
.home-editorial-progress-fill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.home-editorial-progress-line {
  background: rgba(247, 248, 248, 0.32);
}

.home-editorial-progress-fill {
  background: #f7f8f8;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
}

.home-editorial-progress-item.is-active .home-editorial-progress-line {
  background: rgba(247, 248, 248, 0.22);
}

.home-editorial-arrow-group {
  display: flex;
  gap: 0.55rem;
}

.home-editorial-arrow {
  width: 2.7rem;
  height: 2.7rem;
  border: 0;
  background: transparent;
  color: #f7f8f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  font-size: 1.1rem;
}

.home-editorial-arrow:hover {
  transform: translateY(-1px);
  color: #d32c43;
  opacity: 0.95;
}

.home-editorial-detail-list {
  position: relative;
  min-height: clamp(4.4rem, 8vw, 5.2rem);
}

.home-editorial-detail-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  display: grid;
  gap: 0.42rem;
  color: #f7f8f8;
}

.home-editorial-detail-card.is-active {
  opacity: 1;
  transform: translateY(0);
}

.home-editorial-detail-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.34rem, 2.1vw, 1.88rem);
  line-height: 0.98;
}

.home-editorial-detail-location {
  margin: 0;
  color: rgba(248, 242, 232, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-editorial-detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.85rem;
  font-size: 0.75rem;
  color: rgba(248, 242, 232, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-editorial-detail-facts span {
  white-space: normal;
}

.home-featured-services,
.home-featured-units {
  padding: var(--section-space) 0;
  background: #f7f8f8;
}

.home-featured-units {
  padding-top: 0;
}

.home-units-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.45rem;
}

.home-units-section-head .home-editorial-section-head {
  margin-bottom: 0;
}

.home-units-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 1px solid rgba(32, 47, 78, 0.16);
  color: #202f4e;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-units-view-all:hover,
.home-units-view-all:focus-visible {
  background: #202f4e;
  border-color: #202f4e;
  color: #f7f8f8;
}

.home-editorial-section-head {
  max-width: 860px;
  margin-bottom: 1.4rem;
}

.home-editorial-section-kicker {
  color: rgba(19, 28, 46, 0.56);
}

.home-editorial-section-title {
  font-size: clamp(1.92rem, 3.4vw, 3.02rem);
  line-height: 0.98;
  color: #202f4e;
}

.home-editorial-section-text {
  margin: 0;
  color: rgba(19, 28, 46, 0.74);
  font-size: 0.98rem;
  line-height: 1.72;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-service-card {
  min-height: 390px;
  overflow: hidden;
  background: #202f4e;
  transition: transform 0.24s ease;
}

.home-service-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-service-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.08) 0%, rgba(8, 15, 28, 0.78) 100%);
}

.home-service-copy {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 0.62rem;
  padding: 1.35rem;
  color: #f7f8f8;
}

.home-service-copy h3 {
  margin: 0;
  font-family: "Manrope", sans-serif !important;
  font-size: clamp(1.18rem, 1.8vw, 1.55rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase !important;
  max-width: 13ch;
}

.home-service-copy p {
  margin: 0;
  max-width: 34ch;
  font-size: 0.92rem;
  line-height: 1.62;
  color: rgba(248, 242, 232, 0.84);
}

.home-service-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 248, 248, 0.92);
}

.home-service-link:hover img,
.home-service-link:focus-visible img {
  transform: scale(1.04);
}

.home-service-card:hover,
.home-service-card:focus-within {
  transform: translateY(-2px);
}

.home-units-carousel {
  position: relative;
  width: min(100%, 1680px);
  margin: 0 auto;
}

.home-units-stage {
  position: relative;
  padding-inline: clamp(2.8rem, 4vw, 4rem);
}

.home-units-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(32, 47, 78, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #202f4e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 18, 34, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.home-units-arrow[data-home-units-prev] {
  left: 0;
  transform: translateY(-50%);
}

.home-units-arrow[data-home-units-next] {
  right: 0;
  transform: translateY(-50%);
}

.home-units-arrow svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-units-arrow:hover,
.home-units-arrow:focus-visible {
  transform: translateY(calc(-50% - 1px));
  color: var(--color-accent);
  border-color: rgba(211, 44, 67, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(10, 18, 34, 0.12);
}

.home-units-arrow:disabled {
  opacity: 0.38;
  cursor: default;
  transform: translateY(-50%);
  box-shadow: none;
}

.home-units-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-left: 0;
  padding-bottom: 0.2rem;
}

.home-units-carousel.is-marquee .home-units-viewport {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.home-units-viewport::-webkit-scrollbar {
  display: none;
}

.home-units-track {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
}

.home-units-slide {
  flex: 0 0 calc((100% - 4rem) / 5);
  min-width: 0;
  scroll-snap-align: start;
}

.home-units-slide .property-card {
  height: 100%;
  box-shadow: 0 18px 42px rgba(17, 25, 42, 0.08);
}

.home-units-slide.is-clone {
  pointer-events: none;
}

@media (max-width: 1279px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-units-slide {
    flex-basis: calc((100% - 3rem) / 4);
  }
}

@media (max-width: 1023px) {
  .home-editorial-hero {
    min-height: clamp(40rem, 84svh, 52rem);
  }

  .home-editorial-controls-shell {
    position: absolute;
    inset: auto 0 1rem 0;
    margin-top: 0;
  }

  .home-editorial-copy.is-pinned {
    max-width: min(100%, 40rem);
  }

  .home-editorial-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: end;
  }

  .home-editorial-project-shell {
    margin-left: 0;
    width: min(100%, 30rem);
  }

  .home-editorial-slide-layout {
    min-height: inherit;
    padding-top: clamp(6.8rem, 10vw, 7.4rem);
    padding-bottom: clamp(15.5rem, 24vw, 18rem);
  }

  .home-editorial-stats {
    gap: 0.5rem 0.8rem;
  }

  .home-units-slide {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-editorial-controls {
    gap: 1.25rem;
  }

  .home-editorial-project-shell {
    width: 100%;
  }

  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-card {
    min-height: 360px;
  }
}

@media (max-width: 767px) {
  .home-editorial-hero {
    min-height: clamp(39rem, 100svh, 48rem);
  }

  .home-services-grid {
    grid-template-columns: 1fr;
  }

  .home-editorial-slide-shade {
    background:
      linear-gradient(180deg, rgba(7, 12, 22, 0.04) 0%, rgba(7, 12, 22, 0.22) 42%, rgba(7, 12, 22, 0.68) 100%),
      linear-gradient(90deg, rgba(18, 28, 46, 0.5) 0%, rgba(18, 28, 46, 0.22) 48%, rgba(18, 28, 46, 0.42) 100%);
  }

  .home-editorial-slide-layout {
    gap: 1rem;
    padding-top: 6.25rem;
    padding-bottom: clamp(14.5rem, 42vw, 17.5rem);
  }

  .home-editorial-controls-shell {
    inset: auto 0 0.85rem 0;
    margin-top: 0;
    padding-bottom: 0;
  }

  .home-editorial-copy {
    gap: 0.95rem;
    max-width: 100%;
  }

  .home-editorial-copy.is-pinned,
  .home-editorial-project-shell {
    width: 100%;
    max-width: 100%;
  }

  .home-editorial-summary {
    max-width: 30rem;
    font-size: 0.92rem;
    line-height: 1.66;
  }

  .home-editorial-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.95rem;
  }

  .home-editorial-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .home-editorial-stat strong,
  .home-editorial-stat span {
    white-space: normal;
  }

  .home-editorial-stat strong {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-shadow: 0 6px 22px rgba(8, 15, 28, 0.28);
  }

  .home-editorial-stat span {
    color: rgba(247, 248, 248, 0.84);
    font-size: 0.74rem;
    line-height: 1.35;
    text-shadow: 0 6px 18px rgba(8, 15, 28, 0.24);
  }

  .home-editorial-actions-desktop,
  .home-editorial-progress-shell {
    display: none;
  }

  .home-editorial-actions-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .home-editorial-actions-mobile .home-editorial-cta {
    min-width: 0;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .home-editorial-detail-list {
    min-height: 3.6rem;
  }

  .home-editorial-detail-card {
    gap: 0.28rem;
  }

  .home-editorial-detail-card h2 {
    font-size: clamp(1.18rem, 6vw, 1.48rem);
  }

  .home-editorial-detail-facts {
    gap: 0.24rem 0.7rem;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .home-editorial-mobile-pills {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .home-editorial-mobile-pills::-webkit-scrollbar {
    display: none;
  }

  .home-editorial-mobile-pill {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(247, 248, 248, 0.24);
    background: rgba(12, 21, 36, 0.2);
    color: rgba(247, 248, 248, 0.9);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    scroll-snap-align: start;
  }

  .home-editorial-mobile-pill.is-active {
    background: #f7f8f8;
    border-color: #f7f8f8;
    color: #202f4e;
  }

  .home-mobile-quick-actions {
    display: block;
    background: #f7f8f8;
    margin-top: -0.2rem;
    padding: 0.8rem 0 0.25rem;
  }

  .home-mobile-quick-actions .container {
    width: min(var(--home-wide-max-width), calc(100% - (2 * var(--page-inline-padding-tight))));
  }

  .home-mobile-quick-actions-list {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0 0.1rem 0.35rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .home-mobile-quick-actions-list::-webkit-scrollbar {
    display: none;
  }

  .home-mobile-quick-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(32, 47, 78, 0.12);
    background: #ffffff;
    color: #202f4e;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
    scroll-snap-align: start;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  }

  .home-service-card {
    min-height: auto;
  }

  .home-service-link {
    display: grid;
    height: auto;
  }

  .home-service-link img {
    aspect-ratio: 16 / 10;
  }

  .home-service-overlay {
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.04) 0%, rgba(8, 15, 28, 0.7) 100%);
  }

  .home-service-copy {
    gap: 0.55rem;
    padding: 1rem 1rem 1.1rem;
  }

  .home-service-copy h3 {
    font-size: clamp(1.04rem, 5vw, 1.28rem);
  }

  .home-service-copy p {
    font-size: 0.88rem;
  }

  .home-service-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-service-cta-label {
    font-size: 0.64rem;
  }

  .home-units-section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 0.9rem;
  }

  .home-units-view-all {
    align-self: flex-start;
  }

  .home-units-arrow {
    display: none;
  }

  .home-units-stage {
    padding-inline: 0;
  }

  .home-units-slide {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 479px) {
  .home-editorial-slide-layout {
    gap: 1.1rem;
    padding-top: 6.1rem;
    padding-bottom: 14.5rem;
  }

  .home-editorial-hero-title {
    font-size: clamp(2rem, 11vw, 2.85rem);
  }

  .home-editorial-actions-mobile {
    grid-template-columns: 1fr;
  }

  .home-featured-services,
  .home-featured-units {
    padding: 2.6rem 0;
  }

  .home-featured-units {
    padding-top: 0;
  }

  .home-service-card {
    min-height: 0;
  }

  .home-service-copy {
    padding: 1rem;
  }

  .home-units-slide {
    flex-basis: min(88vw, 20rem);
  }
}

@media (max-width: 479px) {
  .home-editorial-stats {
    gap: 0.3rem 0.8rem;
  }
}

/* -------------------------------------------------
   CORRECCIÓN: los títulos del carrusel van dentro de
   un enlace, y los enlaces son azules por defecto, así
   que quedaban ilegibles sobre la foto. Aquí se fuerza
   el color claro dentro del hero.
   ------------------------------------------------- */
.home-editorial-hero a {
  color: inherit;
}

.home-editorial-detail-card h2,
.home-editorial-detail-card h2 a {
  color: #f7f8f8;
  text-decoration: none;
}

.home-editorial-detail-card h2 a:hover {
  color: #fff;
  text-decoration: underline;
}

.home-editorial-detail-facts,
.home-editorial-detail-facts span {
  color: rgba(255, 255, 255, 0.92);
}

.home-editorial-eyebrow,
.home-editorial-hero-title,
.home-editorial-stat strong,
.home-editorial-stat span {
  color: #f7f8f8;
}

/* Sombra suave para que el texto se lea sobre fotos claras */
.home-editorial-detail-card h2,
.home-editorial-detail-facts,
.home-editorial-hero-title,
.home-editorial-eyebrow {
  text-shadow: 0 2px 12px rgba(10, 18, 34, 0.55);
}

/* Botones del hero: legibles sobre cualquier imagen.
   Se antepone .home-editorial-hero para que estas reglas tengan
   más peso que la de "los enlaces del hero heredan color". */
.home-editorial-hero .home-editorial-cta {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.94);
  border-color: transparent;
}

.home-editorial-hero .home-editorial-cta:hover {
  background: #fff;
  color: var(--color-accent);
  text-decoration: none;
}

.home-editorial-hero .home-editorial-cta.is-secondary {
  background: transparent;
  color: #f7f8f8;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.home-editorial-hero .home-editorial-cta.is-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Flechas e indicadores del carrusel */
.home-editorial-hero .home-editorial-arrow {
  color: #f7f8f8;
  border-color: rgba(255, 255, 255, 0.55);
}

.home-editorial-hero .home-editorial-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* -------------------------------------------------
   Carrusel horizontal de propiedades destacadas
   (la pista y las diapositivas, que no venían en el
   CSS original porque allí se generaban por JS).
   ------------------------------------------------- */
.home-units-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-units-viewport::-webkit-scrollbar {
  display: none;
}

.home-units-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.25rem 0 0.75rem;
}

.home-units-slide {
  flex: 0 0 clamp(240px, 22vw, 300px);
  scroll-snap-align: start;
}

.home-units-slide .property-card {
  height: 100%;
}

.home-editorial-section-sub {
  margin: 0.4rem 0 0;
  max-width: 46rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Texto dentro de los tres bloques de servicio */
.landing-pillars .pillar-content p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 22rem;
}

.landing-pillars .pillar-cta {
  display: inline-block;
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.2rem;
}

.landing-pillars .pillar-link:hover .pillar-cta {
  border-bottom-color: var(--color-accent);
  color: #fff;
}

/* Bloque de contacto de la portada */
.home-contact {
  padding: var(--section-space) var(--page-inline-padding);
}

.home-contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.home-contact-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem 0 1.6rem;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.home-contact-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* =================================================
   FRASE Y MENÚ SOBRE EL CARRUSEL

   Bloque centrado sobre la imagen: la pregunta y los
   cuatro accesos. Incluye un velo oscuro en la franja
   superior para que el texto blanco se lea sobre
   cualquier fotografía.
   ================================================= */

/* Altura del carrusel: deja intuir la sección siguiente */
.home-editorial-hero {
  position: relative;
  min-height: clamp(28rem, 68svh, 46rem);
}

/* Velo oscuro degradado, solo arriba */
.home-editorial-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 62%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 18, 34, 0.62) 0%,
    rgba(10, 18, 34, 0.42) 32%,
    rgba(10, 18, 34, 0.16) 68%,
    transparent 100%
  );
}

.hero-menu-overlay {
  position: absolute;
  top: clamp(1.6rem, 5vh, 3.4rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(1100px, 92vw);
  text-align: center;
  pointer-events: none;
}

.hero-menu-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(10, 18, 34, 0.5),
    0 6px 26px rgba(10, 18, 34, 0.55);
}

.hero-menu-nav {
  pointer-events: auto;
}

.hero-menu-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-menu-links a {
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.9vw, 1.72rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-shadow:
    0 1px 2px rgba(10, 18, 34, 0.5),
    0 4px 18px rgba(10, 18, 34, 0.5);
  transition: color 0.25s ease;
}

/* Línea inferior: blanca tenue en reposo, roja al pasar
   el ratón y en la sección activa */
.hero-menu-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.32);
  transition: background 0.28s ease, box-shadow 0.28s ease;
}

.hero-menu-links a:hover {
  color: #fff;
  text-decoration: none;
}

.hero-menu-links a:hover::after,
.hero-menu-links a.active::after {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(211, 44, 67, 0.85);
}

/* En móvil el menú también se muestra bajo la pregunta,
   en dos filas de dos y algo más pequeño. */
@media (max-width: 1023px) {
  .hero-menu-overlay {
    top: clamp(1rem, 3vh, 2rem);
    width: min(560px, 94vw);
  }

  .hero-menu-label {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .hero-menu-links {
    gap: 0.5rem 1.1rem;
  }

  .hero-menu-links a {
    font-size: clamp(1.02rem, 4.4vw, 1.25rem);
    padding-bottom: 0.22rem;
  }
}

/* En pantallas muy estrechas, dos por fila */
@media (max-width: 480px) {
  .hero-menu-links {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 0.55rem 1.4rem;
  }
}

/* En móvil el bloque ocupa más alto (pregunta + 4 enlaces),
   así que se da algo más de altura al carrusel para que no
   se solape con el título de la promoción. */
@media (max-width: 1023px) {
  .home-editorial-hero {
    min-height: clamp(30rem, 78svh, 44rem);
  }
}
