/*
 * Vivienda Lista · acabado 1.0.56
 * Capa de refinamiento para Inicio, Servicios y sus nueve páginas hijas.
 * Conserva estructura, contenido, navegación y movimiento de la versión 1.0.54.
 */

:where(.vl-home, .vl-services-page, .vl-service-page) {
  --vl-finish-line: color-mix(in srgb, var(--vl-pine) 22%, transparent);
  --vl-finish-soft: color-mix(in srgb, var(--vl-lime) 15%, var(--vl-ivory));
  --vl-finish-shadow: 0 18px 45px -34px rgba(23, 63, 53, .45);
  --vl-finish-ease: cubic-bezier(.22, 1, .36, 1);
  font-family: Manrope, sans-serif;
  text-rendering: optimizeLegibility;
}

:where(.vl-home, .vl-services-page, .vl-service-page) ::selection {
  background: var(--vl-lime);
  color: var(--vl-pine);
}

:where(.vl-home, .vl-services-page, .vl-service-page) :where(h1, h2, h3) {
  font-family: "Red Hat Display", Manrope, sans-serif;
  text-wrap: balance;
}

:where(.vl-home, .vl-services-page, .vl-service-page) :where(p, li) {
  text-wrap: pretty;
}

:where(.vl-home, .vl-services-page, .vl-service-page) .vl-section-heading {
  max-width: 22ch;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
  letter-spacing: -.032em;
}

:where(.vl-home, .vl-services-page, .vl-service-page) .vl-lead {
  max-width: 62ch;
  line-height: 1.65;
}

/* Botones y enlaces: respuesta clara sin competir con el movimiento existente. */
:where(.vl-home, .vl-services-page, .vl-service-page) .vl-button .wp-block-button__link {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.35rem;
  box-shadow: 0 8px 22px -16px rgba(23, 63, 53, .65);
  transition: background-color 180ms var(--vl-finish-ease),
    color 180ms var(--vl-finish-ease),
    box-shadow 180ms var(--vl-finish-ease);
}

:where(.vl-home, .vl-services-page, .vl-service-page) .vl-button .wp-block-button__link:active {
  box-shadow: 0 3px 10px -8px rgba(23, 63, 53, .7);
}

:where(.vl-home, .vl-services-page, .vl-service-page) .vl-text-link a {
  text-decoration-thickness: .12em;
  text-underline-offset: .34em;
  transition: color 160ms ease-out, text-decoration-color 160ms ease-out;
}

:where(.vl-home, .vl-services-page, .vl-service-page) .vl-text-link a:focus-visible,
:where(.vl-home, .vl-services-page, .vl-service-page) .vl-button .wp-block-button__link:focus-visible {
  outline-width: 3px;
  outline-offset: 4px;
}

/* Tarjetas: jerarquía y foco idénticos para ratón y teclado. */
:where(.vl-home, .vl-services-page) .vl-service-card {
  isolation: isolate;
  border-color: var(--vl-finish-line);
  box-shadow: 0 0 0 rgba(23, 63, 53, 0);
  transition: border-color 180ms var(--vl-finish-ease),
    background-color 180ms var(--vl-finish-ease),
    box-shadow 180ms var(--vl-finish-ease);
}

:where(.vl-home, .vl-services-page) .vl-service-card h3 {
  letter-spacing: -.024em;
}

:where(.vl-home, .vl-services-page) .vl-service-card > p:not(.vl-text-link) {
  max-width: 34ch;
  line-height: 1.55;
}

:where(.vl-home, .vl-services-page) .vl-service-card .vl-text-link a {
  min-height: 2.75rem;
}

@media (hover: hover) and (pointer: fine) {
  :where(.vl-home, .vl-services-page) .vl-service-card:hover,
  :where(.vl-home, .vl-services-page) .vl-service-card:focus-within {
    border-color: var(--vl-pine);
    background: var(--vl-finish-soft) !important;
    box-shadow: var(--vl-finish-shadow);
  }

  :where(.vl-home, .vl-services-page, .vl-service-page) .vl-text-link a:hover {
    color: #0d2e27;
    text-decoration-color: var(--vl-pine);
  }

  :where(.vl-home, .vl-services-page, .vl-service-page) .vl-button .wp-block-button__link:hover {
    box-shadow: 0 12px 26px -18px rgba(23, 63, 53, .75);
  }
}

/* Inicio: compactar el recorrido sin cambiar su arquitectura. */
.vl-home > .vl-hero + .vl-section {
  padding-block: clamp(3.75rem, 6vw, 5rem);
}

.vl-home .vl-home-chapter__intro {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.vl-home .vl-home-chapter__layout,
.vl-home .vl-home-service-reel {
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.vl-home .vl-home-chapter__space-image,
.vl-home .vl-home-chapter__detail-image,
.vl-home .vl-home-visual-card {
  border: 1px solid var(--vl-finish-line);
  box-shadow: var(--vl-finish-shadow);
}

.vl-home .vl-home-chapter__caption {
  padding-top: 1.5rem;
}

.vl-home .vl-home-visual-card__meta {
  min-height: 7.5rem;
}

.vl-home .vl-home-final > .vl-shell {
  row-gap: .85rem;
}

/* Servicios: fotografía, paneles y pasos comparten un borde sereno. */
.vl-service-page .vl-hero--service > :first-child {
  min-width: 0;
}

.vl-service-page .vl-hero--service > :first-child > p:not(.vl-text-link):not(.vl-service-location) {
  max-width: 49ch;
  line-height: 1.7;
}

.vl-service-page .vl-transform-window--service .vl-simulation,
.vl-service-page .vl-service-visual__frame,
.vl-service-page--punctual .vl-punctual-body > figure {
  border: 1px solid var(--vl-finish-line);
  box-shadow: var(--vl-finish-shadow);
  transition: border-color 200ms var(--vl-finish-ease),
    box-shadow 200ms var(--vl-finish-ease);
}

.vl-service-page .vl-transform-window--service .vl-transform-window__note,
.vl-service-page .vl-service-visual__emblem {
  box-shadow: inset 0 0 0 1px rgba(23, 63, 53, .11);
}

.vl-service-page :where(#que-incluye, #recorrido) .vl-process > * {
  border-color: var(--vl-finish-line);
}

.vl-service-page :where(#que-incluye, #recorrido) .vl-process h3 {
  letter-spacing: -.018em;
}

.vl-service-page :where(#que-incluye, #recorrido) .vl-process p {
  max-width: 44ch;
}

/* FAQ: misma alineación cerrada/abierta y estado inequívoco. */
:where(.vl-home, .vl-service-page) .vl-faq details,
:where(.vl-home, .vl-service-page) .vl-faq details[open] {
  margin-inline: -1rem;
  padding-inline: 1rem;
  border-radius: .5rem;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

:where(.vl-home, .vl-service-page) .vl-faq summary {
  padding-block: .25rem;
  line-height: 1.35;
  transition: color 160ms ease-out;
}

:where(.vl-home, .vl-service-page) .vl-faq summary:focus-visible {
  border-radius: .2rem;
}

:where(.vl-home, .vl-service-page) .vl-faq details[open] {
  background: var(--vl-finish-soft);
  border-top-color: var(--vl-pine);
}

:where(.vl-home, .vl-service-page) .vl-faq details[open] summary {
  margin-bottom: .65rem;
}

:where(.vl-home, .vl-service-page) .vl-faq details[open] p {
  margin-block: 0 .35rem;
}

@media (hover: hover) and (pointer: fine) {
  :where(.vl-home, .vl-service-page) .vl-faq details:not([open]):hover {
    background: color-mix(in srgb, var(--vl-lime) 8%, transparent);
  }

  .vl-service-page .vl-transform-window--service .vl-simulation:hover,
  .vl-service-page .vl-service-visual__frame:hover,
  .vl-service-page--punctual .vl-punctual-body > figure:hover {
    border-color: color-mix(in srgb, var(--vl-pine) 42%, transparent);
    box-shadow: 0 20px 50px -34px rgba(23, 63, 53, .55);
  }
}

@media (max-width: 700px) {
  :where(.vl-home, .vl-services-page, .vl-service-page) .vl-section {
    padding-block: clamp(3.25rem, 13vw, 4.5rem);
  }

  :where(.vl-home, .vl-services-page, .vl-service-page) .vl-section-heading,
  .vl-service-page .vl-section h2 {
    line-height: 1.04;
  }

  .vl-service-page .vl-hero--service {
    gap: 1.5rem;
    padding-block: 2.75rem 3.25rem;
  }

  .vl-service-page .vl-hero--service > :first-child > .vl-actions {
    margin-top: 1.4rem;
  }

  .vl-service-page .vl-hero--service > :first-child > .vl-text-link:last-child {
    margin-top: .85rem;
  }

  .vl-service-page .vl-transform-window--service .vl-transform-window__note {
    min-height: 0;
    padding: 1.25rem 1.35rem;
  }

  .vl-service-page :where(#que-incluye, #recorrido) .vl-process {
    gap: 0;
  }

  .vl-service-page :where(#que-incluye, #recorrido) .vl-process > * {
    padding-block: 1.35rem 1.5rem;
  }

  .vl-home .vl-home-final .vl-actions {
    width: 100%;
  }
}

/* A 390 px la doble columna partía titulares y dejaba grandes huecos internos. */
@media (max-width: 520px) {
  .vl-home > .vl-hero + .vl-section .vl-grid-4,
  .vl-services-page .vl-services-cards .vl-grid-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card,
  .vl-services-page .vl-services-cards .vl-service-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: .35rem 1rem;
    padding: 1.15rem;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card::before,
  .vl-services-page .vl-services-cards .vl-service-card::before {
    position: absolute;
    top: .85rem;
    right: 1rem;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card figure,
  .vl-services-page .vl-services-cards .vl-service-card figure {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card h3,
  .vl-services-page .vl-services-cards .vl-service-card h3 {
    grid-column: 2;
    margin: .2rem 1.8rem .1rem 0;
    font-size: 1.25rem;
    line-height: 1.08;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card > p:not(.vl-text-link),
  .vl-services-page .vl-services-cards .vl-service-card > p:not(.vl-text-link) {
    grid-column: 2;
    margin: 0;
    font-size: .95rem;
    line-height: 1.45;
  }

  .vl-home > .vl-hero + .vl-section .vl-service-card .vl-text-link,
  .vl-services-page .vl-services-cards .vl-service-card .vl-text-link {
    grid-column: 1 / -1;
    margin: .55rem 0 0;
    padding-top: .65rem;
  }

  :where(.vl-home, .vl-service-page) .vl-faq details,
  :where(.vl-home, .vl-service-page) .vl-faq details[open] {
    margin-inline: -.5rem;
    padding-inline: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.vl-home, .vl-services-page, .vl-service-page) :where(
    .vl-service-card,
    .vl-button .wp-block-button__link,
    .vl-text-link a,
    .vl-transform-window--service .vl-simulation,
    .vl-service-visual__frame,
    .vl-punctual-body > figure,
    .vl-faq details,
    .vl-faq summary
  ) {
    transition: none !important;
  }
}

/* Attention and coverage · 1.0.57 */
.vl-contact-page .vl-attention { margin-block: 2rem; padding-block: 1.4rem; border-block: 1px solid var(--vl-line); }
.vl-contact-page .vl-attention h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .8rem; }
.vl-contact-page .vl-attention dl { margin: 0; font-size: .95rem; }
.vl-contact-page .vl-attention dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .35rem; }
.vl-contact-page .vl-attention dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vl-contact-page .vl-attention p { font-size: .95rem; line-height: 1.6; margin: .9rem 0 0; }
.vl-area { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); align-items: start; }
.vl-contact-page #zona-servicio { background: var(--vl-paper); }
.vl-area p { color: var(--vl-pine-soft); max-width: 62ch; line-height: 1.7; }
.vl-area .vl-text-link { display: inline-block; padding-block: .8rem; text-underline-offset: .3em; }
.vl-area-disclosure { border-block: 1px solid var(--vl-line); }
.vl-area-disclosure summary { cursor: pointer; padding: 1.2rem .25rem; font-weight: 750; font-size: 1.15rem; color: var(--vl-pine); }
.vl-area-disclosure summary::marker { color: var(--vl-pine); }
.vl-area-disclosure ul { columns: 2; column-gap: 2rem; padding: 0 0 1.5rem 1.3rem; margin: 0; }
.vl-area-disclosure li { break-inside: avoid; padding-block: .35rem; font-size: .95rem; line-height: 1.6; color: var(--vl-pine-soft); }
.vl-area a:focus-visible, .vl-area-disclosure summary:focus-visible { outline: 2px solid var(--vl-pine); outline-offset: 4px; }
#horario-atencion, #zona-servicio { scroll-margin-top: 7rem; }
.vl-contact-form input, .vl-contact-form textarea { caret-color: var(--vl-pine); }
@media (max-width: 760px) {
  .vl-area { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .vl-area-disclosure ul { columns: 1; }
  .vl-attention dt { min-width: 0; }
}

/* Native service selection · 1.0.58 */
:where(.vl-home, .vl-services-page) a.vl-service-card-link {
  color: var(--vl-pine);
  text-decoration: none;
  cursor: pointer;
}
:where(.vl-home, .vl-services-page) a.vl-service-card-link:focus-visible {
  outline: 3px solid var(--vl-pine);
  outline-offset: 4px;
  border-color: var(--vl-pine);
  background: var(--vl-finish-soft) !important;
}
.vl-service-card-link .vl-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  width: 100%;
  color: var(--vl-pine);
  font-weight: 700;
}
.vl-service-card-link .vl-card-action::after {
  content: "";
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 180ms cubic-bezier(.22,1,.36,1);
}
.vl-service-card-link:is(:hover, :focus-visible) .vl-card-action::after {
  transform: translateX(3px);
}
.vl-service-card-link:is(:hover, :focus-visible) .vl-card-action {
  text-decoration: underline;
  text-decoration-color: var(--vl-pine);
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
}

/* Reuse WordPress's current-page semantics in both native menus. */
.vl-header .wp-block-navigation .vl-nav-services > .wp-block-navigation__submenu-container > .wp-block-navigation-item:not(.vl-nav-overview) > .wp-block-navigation-item__content[aria-current="page"] {
  background: color-mix(in srgb, var(--vl-lime) 35%, var(--vl-ivory));
  color: var(--vl-pine);
  border-radius: .4rem;
  font-weight: 750;
  text-decoration: none;
}
.vl-header .vl-nav-services .wp-block-navigation-item:not(.vl-nav-overview) > a[aria-current="page"]::after {
  content: "";
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-left: auto;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vl-service-page .vl-hero--service > :first-child > .vl-text-link:first-child a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
}
.vl-service-page .vl-hero--service > :first-child > .vl-text-link:first-child a::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12H4m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media (max-width: 980px) {
  .vl-header .wp-block-navigation .vl-nav-services > .wp-block-navigation__submenu-container > .wp-block-navigation-item:not(.vl-nav-overview) > .wp-block-navigation-item__content[aria-current="page"] {
    background: rgba(215,235,135,.14);
    color: var(--vl-lime) !important;
    padding-inline: .7rem;
    gap: .5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vl-service-card-link .vl-card-action::after { transition: none; transform: none; }
}
