
/* 1. Hero */
.hero .bg { object-position: 50% 30%; }

.hero-copy { position: relative; z-index: 3; max-width: min(44rem, 62vw); padding: calc(var(--nav-h) + clamp(3rem, 12vh, 7rem)) 0 0 calc(var(--gx) + clamp(1.4rem, 3.5vw, 3.2rem)); pointer-events: none; }
.hero-copy .display { font-size: clamp(2.8rem, 6vw, 6.2rem); }
.hero-copy .lead strong { color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; pointer-events: auto; }
/* Los dos botones del hero: dos columnas iguales y simétricas */
.cta-pair { display: grid; grid-template-columns: 1fr 1fr; max-width: 33rem; }
.cta-pair .btn { justify-content: center; text-align: center; }
.cta-pair .short { display: none; }
.cta-pair .wa-ico { width: 20px; height: 20px; }
/* La frase de apoyo en una sola línea en pantallas anchas */
@media (min-width: 1280px) { .hero-lead { max-width: none; white-space: nowrap; font-size: clamp(1rem, 1.15vw, 1.15rem); } }
.hint { position: absolute; z-index: 3; right: var(--gx); bottom: calc(clamp(2rem, 7vh, 4rem) + 1rem); margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; transition: opacity .6s; }
.hint span { color: var(--cherry); }
.hint.is-gone { opacity: 0; }

.swipe-hint { display: none; }
@media (max-width: 640px) { .swipe-hint { display: inline; color: var(--cherry); font-weight: 700; } }

/* Ofertas (se activan en ofertas.js) */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 2.6rem 0 0; padding: 0; list-style: none; }
.offer { display: flex; flex-direction: column; gap: .8rem; padding: 1.6rem; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.offer h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.offer p { margin: 0; line-height: 1.55; color: var(--ink-soft); }
.offer small { font-size: .78rem; color: var(--ink-soft); }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* 2. Servicio: seis cuadros en 3 × 2 (2 × 3 en tableta y celular) */
.service-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 2rem clamp(1rem, 2vw, 2rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact:nth-child(3n + 1) { padding-left: 0; }
.fact:nth-child(3n) { border-right: 0; }
.fact:nth-child(3n + 2) { transition-delay: .08s; } .fact:nth-child(3n) { transition-delay: .16s; }
.num { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 6.4vw, 6.4rem); line-height: .9; letter-spacing: -.04em; color: var(--cherry); }
.num small { margin-left: .4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.fact h3 { margin: 1.4rem 0 .5rem; font-size: 1.05rem; }
.fact p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: .96rem; }



/* 6. Cierre */
.closing .bg { object-position: 50% 40%; }
.close-copy { position: relative; z-index: 3; padding: calc(var(--nav-h) + 14vh) var(--gx) 0 calc(var(--gx) + clamp(1.4rem, 3.5vw, 3.2rem)); max-width: 44rem; }

@media (max-width: 980px) {
  .hero-copy { max-width: none; padding-right: var(--gx); }
  .hero .bg { object-position: 72% 30%; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.6rem; }
  .fact + .fact { padding-left: 0; }
  .fact:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: 1rem; }
  .hint { display: none; }
}
/* Móvil: un bodegón vertical pintado para el celular ocupa toda la primera pantalla. El texto y los botones van
   arriba, sobre la pared crema y tranquila de la pintura; el canasto, el huacal y la mesa quedan abajo. */
@media (max-width: 640px) {
  .hero { display: flex; flex-direction: column; justify-content: flex-start; min-height: 100svh; padding: max(calc(var(--nav-h) + 1.4rem), 29svh) 0 calc(var(--tab-h) + 1rem); } /* el texto va en la franja de pared entre la rama y el huacal */
  .hero .hint { display: none; }
  .scene.hero > .bg-pic > .bg { inset: 0; height: 100%; object-position: 70% 100%; transform: none !important;
    -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
  .hero-copy { padding: 0 var(--gx); }
  .hero-copy .kicker { display: none; } /* en celular el horario ya está en los cuadros del servicio */
  .hero-copy .display { font-size: clamp(2.15rem, 9.6vw, 2.9rem); }
  .hero-copy .lead { margin-top: 1rem; font-size: 1rem; }
  .cta-row { margin-top: 1.4rem; }
  .cta-row .btn { justify-content: center; min-height: 52px; }
  .cta-pair { gap: .6rem; }
  .cta-pair .btn { padding-inline: .7rem; font-size: .95rem; }
  .cta-pair .full { display: none; } .cta-pair .short { display: inline; }
  .hero .lead { color: var(--ink); }
  .rule-v { display: none; }

  /* Celular: secciones más cortas para no hacer 12 pantallas de scroll */
  .section { padding-block: 3.6rem; }

  /* Cifras en cuadrícula 2 × 2 */
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact, .fact:nth-child(odd), .fact:nth-child(even) { padding: 1.2rem .9rem 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:nth-child(even) { padding-left: .9rem; border-left: 1px solid var(--line); }
  .num { font-size: 2.6rem; }
  .num small { display: block; margin: .35rem 0 0; font-size: .58rem; }
  .fact h3 { margin: .8rem 0 .3rem; font-size: .95rem; }
  .fact p:last-child { font-size: .85rem; line-height: 1.45; }

  .closing { display: flex; flex-direction: column; justify-content: flex-end; min-height: 92svh; padding-bottom: calc(var(--tab-h) + 1.6rem); }
  .close-copy { padding: 0 5rem 0 var(--gx); }
  .closing .bg { object-position: 72% 50%; }
  .closing .veil { background: linear-gradient(0deg, rgba(15,31,23,.86) 0%, rgba(15,31,23,.55) 30%, rgba(15,31,23,0) 52%); }
  .close-copy :is(.kicker, .display) { color: var(--cream); text-shadow: 0 1px 14px rgba(15,31,23,.55); }
  .close-copy .display em { color: #ff9aa8; }
}
/* ---------- Cinta de productos ---------- */
.ribbon { display: grid; gap: .9rem; padding: clamp(2.2rem, 5vw, 3.6rem) 0; overflow: hidden; border-block: 1px solid var(--line); background: rgba(235,229,214,.55); }
.ribbon-kicker { margin: 0 var(--gx) .4rem; }
.ribbon-track { overflow: hidden; }
.ribbon-row { display: flex; gap: .9rem; width: max-content; will-change: transform; }
.pchip { display: inline-flex; align-items: center; gap: .75rem; padding: .4rem 1.2rem .4rem .4rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.12rem; white-space: nowrap; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.pchip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f1ece1; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pchip:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 14px 26px -16px rgba(15,31,23,.55); }
.pchip:hover img { transform: scale(1.12) rotate(-6deg); }
.pchip:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; }
@media (max-width: 640px) {
  .pchip { gap: .55rem; padding-right: .95rem; font-size: 1rem; }
  .pchip img { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { .ribbon-track { overflow-x: auto; } }

/* ---------- La operación real (fotos y videos) ---------- */
.op-head { max-width: 46rem; }
.op-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(11rem, 16vw, 15rem); grid-auto-flow: dense; gap: .8rem; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; list-style: none; }
.op-item:first-child { grid-column: span 2; grid-row: span 2; }
.op-item.is-video, .op-item.is-tall { grid-row: span 2; }
.op-item button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--ink); cursor: zoom-in; }
.op-item img, .op-item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.op-item button:hover img, .op-item button:hover video { transform: scale(1.04); }
.op-item button:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; }
.op-text { position: absolute; inset: auto 0 0; padding: 2.2rem .9rem .8rem; background: linear-gradient(transparent, rgba(15,31,23,.78)); color: var(--cream); font-size: .9rem; line-height: 1.3; text-align: left; }
.op-play { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(244,241,234,.92); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.op-play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--cherry); }
.op-grid.is-empty { display: block; }
.op-empty { padding: 1.6rem; border: 2px dashed var(--line); border-radius: 16px; color: var(--ink-soft); line-height: 1.55; }
.op-empty p { margin: 0 0 .5rem; } .op-empty p:last-child { margin: 0; font-size: .86rem; }
.op-empty code { padding: .1rem .35rem; border-radius: 6px; background: rgba(15,31,23,.07); font-size: .85em; }
.op-viewer { width: min(1100px, 100vw); max-width: 100vw; max-height: 100svh; padding: 0; border: 0; background: transparent; color: var(--cream); overflow: visible; }
.op-viewer::backdrop { background: rgba(10,18,14,.88); }
.op-stage { margin: 0; display: grid; justify-items: center; gap: .7rem; }
.op-stage img, .op-stage video { max-width: 100%; max-height: calc(100svh - 7rem); border-radius: 10px; display: block; background: #000; }
.op-stage figcaption { font-size: .95rem; text-align: center; padding: 0 3.5rem; }
.op-close, .op-nav { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(244,241,234,.14); color: var(--cream); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.op-close:hover, .op-nav:hover { background: rgba(244,241,234,.28); }
.op-close { top: 14px; right: 14px; }
.op-nav { top: 50%; margin-top: -24px; }
.op-nav.prev { left: 14px; } .op-nav.next { right: 14px; }
.op-viewer.is-single .op-nav { display: none; }
@media (max-width: 980px) {
  .op-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; }
}
@media (max-width: 640px) {
  /* En celular: carrusel deslizable con imán */
  .op-grid { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; grid-template-rows: 24rem; grid-auto-rows: auto; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: calc(var(--gx) * -1); padding: 0 var(--gx) .6rem; scroll-padding-inline: var(--gx); scrollbar-width: none; }
  .op-grid::-webkit-scrollbar { display: none; }
  .op-item, .op-item:first-child, .op-item.is-video, .op-item.is-tall { grid-column: auto; grid-row: auto; scroll-snap-align: start; }
  .op-grid.is-empty { margin-inline: 0; padding: 0; }
  .op-nav { top: auto; bottom: 14px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .op-item img, .op-item video { transition: none; } }
