/* PASO 4B / final closure: desktop additions only.
   Keep the header over the image, not outside a viewport-minus-header box.
   Browser chrome is already excluded from CSS viewport units. No content,
   assets, accordion states, Courses geometry or mobile rules are changed. */
@media (min-width: 1024px) {
  /* One owner for anchor clearance: the root scrollport. The former pairing
     of root scroll-padding 68px plus section scroll-margin 68px added up to
     136px, pushing complete Services captions below a short desktop window.
     Specificity intentionally supersedes snap-desktop.css without !important.
     Desktop remains natural scrolling, including reduced-motion mode. */
  html:has(body[data-page]) {
    scroll-padding-top: var(--header-height);
    scroll-snap-type: none;
  }
  body[data-page] main > section[class],
  body[data-page] main > section[id] {
    scroll-margin-top: 0;
  }
  body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) .site-header.over-hero {
    height: var(--header-height);
    margin-bottom: calc(-1 * var(--header-height));
  }
  body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) main > .hero {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }
  body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) main > .hero > picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
    aspect-ratio: auto;
  }
  body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) main > .hero > picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0;
  }
  /* Tall, narrower desktop: preserve the right-hand portrait/crown while the
     excess is cropped mostly from empty space. Wide/low keeps the top anchor. */
  @media (max-aspect-ratio: 17 / 10) {
    body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) main > .hero > picture img {
      object-position: 66% 0;
    }
  }

  /* Home Services is a compact chapter, not a second fullscreen hero.
     276px reserves the 68px sticky header + title, captions and breathing room.
     Four equal 2:3 frames are sized by BOTH the available height and width.
     Very short windows retain legible cards and may scroll naturally. */
  body[data-page="home"] .service-index {
    --closure-card-height: clamp(280px, calc(100svh - 276px), 570px);
    --closure-service-gap: clamp(18px, 1.45vw, 28px);
    --closure-service-width: min(1440px, calc(var(--closure-card-height) * 8 / 3 + var(--closure-service-gap) * 3));
    height: auto;
    min-height: 0;
    max-height: none;
    padding-block: clamp(20px, 2.8svh, 30px);
  }
  body[data-page="home"] .service-index > .section-line,
  body[data-page="home"] .service-index > .service-gallery {
    width: min(calc(100% - var(--edge) * 2), var(--closure-service-width));
    max-width: none;
    margin-inline: auto;
  }
  body[data-page="home"] .service-index > .section-line {
    align-items: end;
    gap: 24px;
    margin-bottom: 18px;
  }
  body[data-page="home"] .service-index .section-line .label {
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: .095em;
    margin: 0 0 7px;
  }
  body[data-page="home"] .service-index .section-line h2 {
    font-size: clamp(32px, 2.35vw, 44px);
    line-height: 1.1;
    margin: 0;
  }
  body[data-page="home"] .service-index .section-line > p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
  }
  body[data-page="home"] .service-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--closure-service-gap);
    align-items: start;
  }
  body[data-page="home"] .service-cover figure,
  body[data-page="home"] .service-cover:nth-child(2) figure {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 2 / 3;
    margin: 0;
    overflow: hidden;
  }
  body[data-page="home"] .service-cover img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  body[data-page="home"] .service-cover h3 {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 14px 0 12px;
    margin: 0;
    font-size: clamp(24px, 1.85vw, 32px);
    line-height: 1.2;
    border-bottom: 1px solid var(--line);
  }
  body[data-page="home"] .service-cover h3 .icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
  }

  /* Three intact voices: a leading headline and two supporting essays.
     The hierarchy belongs to headline / body / author / role, not oversized
     body copy. Real local Ibarra family name; no fabricated quotation marks. */
  body:is([data-page="novias"], [data-page="sociales"], [data-page="quinceaneras"]) .service-reviews {
    --closure-review-title: #eee7df;
    --closure-review-body: #dedad4;
    --closure-review-author: #faf9f6;
    --closure-review-role: #bfb2a4;
  }
  body[data-page="novias"] .service-reviews {
    --closure-review-title: #36322c;
    --closure-review-body: #504b44;
    --closure-review-author: #24211d;
    --closure-review-role: #70655a;
  }
  .service-review-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(60px, 7vw, 134px);
    row-gap: clamp(30px, 4svh, 46px);
  }
  .service-review-grid h3,
  .service-review-grid figure:first-child h3 {
    font-family: 'Ibarra Real Nova', Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 2.2vw, 39px);
    line-height: 1.12;
    letter-spacing: -.02em;
    color: var(--closure-review-title);
    opacity: 1;
    max-width: 20ch;
    min-height: 0;
    margin: 0 0 16px;
    text-wrap: balance;
  }
  .service-review-grid figure:first-child h3 {
    font-size: clamp(43px, 3.7vw, 67px);
    line-height: 1.08;
    max-width: 15ch;
    margin-bottom: 23px;
  }
  .service-review-grid blockquote,
  .service-review-grid figure:first-child blockquote {
    font-family: Poppins, Arial, sans-serif;
    font-weight: 400;
    font-size: clamp(14.5px, 1.04vw, 16px);
    line-height: 1.8;
    letter-spacing: 0;
    color: var(--closure-review-body);
    max-width: 52ch;
    margin: 0 0 22px;
    text-wrap: pretty;
  }
  .service-review-grid figure:first-child blockquote {
    font-size: clamp(16px, 1.18vw, 20px);
    line-height: 1.8;
    max-width: 50ch;
    margin-bottom: 30px;
  }
  .service-review-grid figcaption,
  .service-review-grid figure:first-child figcaption {
    font-family: Poppins, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--closure-review-author);
    margin-top: 0;
  }
  .service-review-grid figcaption span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: .045em;
    color: var(--closure-review-role);
  }

  /* Official profiles, without embeds or a new Home content block. */
  .social-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 5vw, 96px);
    padding-block: clamp(44px, 5svh, 68px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .social-editorial-copy .label {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: .12em;
    color: #70655a;
  }
  .social-editorial-copy h2 {
    font-family: 'Ibarra Real Nova', Georgia, serif;
    font-weight: 400;
    font-size: clamp(36px, 3vw, 54px);
    line-height: 1.1;
    margin: 0 0 18px;
  }
  .social-editorial-copy > p:last-child {
    max-width: 53ch;
    margin: 0;
    color: #575149;
    font-size: 15px;
    line-height: 1.8;
  }
  .social-editorial-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 12px;
  }
  .social-editorial-links .button {
    min-width: 156px;
    min-height: 50px;
    justify-content: space-between;
  }
  .contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 24px;
  }
  .footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: 12px;
  }
  .footer-social-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #766e63;
  }
}
