/* El encuadre deja espacio para la lectura y las acciones de compra. */
.photographic-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  overflow: clip;
}
.scene-photograph, .scene-photograph img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.scene-photograph { z-index: -2; }
.scene-photograph img { object-fit: cover; }

.service-hero {
  aspect-ratio: 2.32;
  align-items: end;
  color: #fff6e9;
  --scene-shade: 29 20 16;
  background: rgb(var(--scene-shade));
}
.service-hero .scene-photograph img { object-position: center bottom; }
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(19 13 9 / 44%), transparent 52%);
}
.hero-message {
  width: 49%;
  padding: clamp(28px,4.7vw,94px) 0 clamp(32px,4.7vw,94px) clamp(24px,6vw,125px);
}
.sales-edition { font-weight: 650; font-size: clamp(.89rem,1.08vw,1.12rem); }
.service-hero h1 {
  margin: .18em 0 .22em;
  color: inherit;
  font-size: clamp(3.5rem,6.5vw,8.6rem);
  letter-spacing: -.045em;
  line-height: .92;
}
.hero-intro { max-width: 34ch; font-size: clamp(1rem,1.32vw,1.42rem); line-height: 1.45; text-wrap: pretty; }
.hero-routes { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 1.15rem; margin-top: clamp(16px,1.8vw,30px); }
.scene-action, .hero-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font: 650 .95rem/1.25 var(--sans);
}
.scene-action {
  color: #372119; background: #fff4e1;
  border: 1px solid #fff4e1; border-radius: 4px;
  padding: .7rem 1rem; text-decoration: none;
}
@media (hover: hover) {
  .scene-action:hover { background: #fffdf8; }
}
.hero-quote { text-underline-offset: .3em; text-decoration-thickness: 1px; }
.hero-quote:hover { text-decoration-thickness: 2px; }
.service-hero a:focus-visible { outline: 3px solid #fff4d8; outline-offset: 4px; }

@media (min-width: 641px) and (max-width: 990px) {
  .hero-message { padding-inline-start: 4vw; }
  .hero-routes { column-gap: .8rem; }
  .hero-quote, .scene-action { font-size: .87rem; }
}
@media (max-width: 640px) {
  .service-hero {
    display: block; aspect-ratio: auto;
  }
  .service-hero::before { content: none; }
  .service-hero .scene-photograph { bottom: auto; aspect-ratio: 1122 / 1225; height: auto; }
  .service-hero .scene-photograph::after {
    content: ""; position: absolute; inset: 42% 0 0;
    background: linear-gradient(180deg, transparent, rgb(var(--scene-shade) / 38%) 42%, rgb(var(--scene-shade)) 95%);
  }
  .hero-message {
    width: 100%; padding: 70vw max(20px,5vw) clamp(25px,6vw,48px);
  }
  .service-hero h1 { font-size: clamp(3rem,10.5vw,4.6rem); line-height: .92; margin: .14em 0 .17em; }

  .hero-intro { max-width: 40ch; font-size: 1rem; }
  .hero-routes { gap: 4px 14px; margin-top: 14px; }
  .hero-routes a { font-size: .9rem; }
}
@media (max-width: 360px) {
  .hero-routes a { font-size: .83rem; }
  .hero-routes { column-gap: .75rem; }
  .hero-message { padding-inline: 16px; }
  .scene-action { padding-inline: .72rem; }
}

.cierre-ventas {
  --alto-cierre: clamp(26rem, 36vw, 39rem);
  --entrada-foto: clamp(28px, 3.4vw, 58px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  color: var(--ink);
  background: var(--paper);
}
.cierre-escena {
  --luz-borde: url("media/mayoristas/nicolas-luz-barra.webp");
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: min(72%, calc(var(--alto-cierre) * 1.6));
  display: flex;
  flex-direction: column;
  mask-image: linear-gradient(to right, transparent, #000 32%);
}
.cierre-escena::before {
  content: "";
  flex: 0 0 var(--entrada-foto);
  /* La franja toma los tonos del borde superior del encuadre, por encima del rostro. */
  background: linear-gradient(to bottom, var(--paper), rgb(251 245 233 / 84%) 24%, rgb(251 245 233 / 18%) 76%, transparent),
    var(--luz-borde) 65% top / max(100%, calc(var(--alto-cierre) * 1.5)) 100% no-repeat;
}
.cierre-escena img {
  width: 100%;
  height: 0;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  object-position: 65% top;
}
.cierre-interior {
  display: flex;
  align-items: center;
  min-height: calc(var(--alto-cierre) + var(--entrada-foto));
  padding-block: clamp(3rem, 5vw, 5.5rem);
}
.cierre-acciones { width: min(42%, 32rem); }
.cierre-acciones h2 {
  font-size: clamp(3.5rem, 5.5vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--wine);
  text-wrap: balance;
}
.cierre-acciones p {
  max-width: 32ch;
  margin-top: clamp(.9rem, 1.25vw, 1.35rem);
  font-size: clamp(1rem, 1.22vw, 1.16rem);
  line-height: 1.52;
  text-wrap: pretty;
}
.cierre-acciones .contact-button { margin-top: 1.35rem; }
@media (max-width: 680px) {
  .cierre-escena {
    --luz-borde: url("media/mayoristas/nicolas-luz-barra-movil.webp");
    position: relative;
    inset: auto;
    width: 100%;
    mask-image: none;
  }
  .cierre-escena::before { background-size: 100% 100%, 100% 100%; }
  .cierre-escena img { height: auto; flex: none; aspect-ratio: 4 / 3; object-position: center top; }
  .cierre-interior {
    min-height: 0;
    padding-block: clamp(1.45rem, 5vw, 2.1rem) clamp(2rem, 6vw, 3rem);
  }
  .cierre-acciones { width: 100%; }
  .cierre-acciones h2 { font-size: clamp(2.7rem, 8.9vw, 3.55rem); }
  .cierre-acciones p { max-width: 39ch; margin-top: .75rem; }
  .cierre-acciones .contact-button { margin-top: 1.05rem; min-height: 48px; }
}

.home-trade-routes {
  color: #fff5e4;
  background: #41272a;
}
.trade-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: clamp(44px, 5.3vw, 88px);
}
.trade-entry { padding-inline-end: clamp(24px, 5vw, 88px); }
.trade-entry + .trade-entry {
  border-inline-start: 1px solid #866967;
  padding-inline: clamp(24px, 5vw, 88px) 0;
}
.trade-entry h2 {
  font: 400 clamp(2.2rem, 3.7vw, 4.3rem)/1.07 var(--display, Georgia, serif);
  letter-spacing: -.035em;
}
.trade-entry h2 a {
  display: inline-flex;
  align-items: center;
  column-gap: .4em;
  min-height: 44px;
  text-decoration: none;
}
.trade-entry h2 a span { color: #e7bb9f; font: 400 .55em/1 var(--sans); }
.trade-entry a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-thickness: 1px;
}
.trade-entry a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.trade-entry p { max-width: 43ch; margin-top: .75rem; line-height: 1.55; color: #f2decb; }
@media (max-width: 660px) {
  .trade-entries { grid-template-columns: 1fr; gap: 24px; }
  .trade-entry { padding: 0; }
  .trade-entry + .trade-entry { border: 0; border-top: 1px solid #866967; padding: 22px 0 0; }
}
