/* ==========================================================================
   Pastoreo business · inicio
   Secciones adaptadas de UI Vault: hero acordeón (HER-014), tarjetas que se
   expanden (CRD-012), bento (CRD-018), collage (HER-016), armador de mensaje
   (CTA-003). Sin filas con bordes ni listas numeradas; nada flota al hover.
   ========================================================================== */

.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--line:hover { background: var(--ink); color: #fff; box-shadow: none; }

.hs { max-width: var(--max); margin: auto; padding: clamp(72px, 9vw, 140px) var(--gutter) 0; }
.hs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.hs-head .h2 { max-width: 15ch; }
.hs-head .lead { max-width: 420px; }

/* ---------- Hero: titular a todo el ancho + acordeón de fotos (HER-014) ---------- */
.hp { max-width: var(--max); margin: auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(28px, 4vw, 48px); display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); container-type: inline-size; }
.hp-head { font-size: 96px; font-weight: 600; letter-spacing: -.055em; line-height: .9; white-space: nowrap; }
.hp-fit { display: inline-block; }
.hp-head em { font-style: normal; color: var(--wine); }
.hp-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin: clamp(18px, 2.4vw, 30px) 0 clamp(18px, 2vw, 26px); }
.hp-kicker { font-size: .95rem; font-weight: 500; color: var(--accent); }
.hp-meta-r { display: flex; align-items: center; gap: 24px; max-width: 640px; }
.hp-lede { color: var(--muted); font-size: 1rem; max-width: 38ch; }

.hp-acc { flex: 1 1 auto; min-height: 460px; display: flex; gap: 10px; }
.hp-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: #2a1d1f; transition: flex-grow .75s var(--ease); }
.hp-panel.is-open { flex-grow: 7; }
.hp-panel > img, .hp-panel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.1s var(--ease); }
.hp-panel.is-open > img, .hp-panel.is-open > video { transform: scale(1); }
.hp-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(27, 20, 21, .34); pointer-events: none; transition: opacity .6s var(--ease); }
.hp-panel.is-open::after { opacity: 0; }
.hp-panel::before { content: ""; position: absolute; inset: 40% 0 0; z-index: 1; background: linear-gradient(to top, rgba(27, 14, 17, .72), rgba(27, 14, 17, 0)); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.hp-panel.is-open::before { opacity: 1; }
.hp-trigger { position: absolute; inset: 0; z-index: 2; width: 100%; color: #fff; text-align: left; border-radius: inherit; }
.hp-trigger:focus-visible { outline: 2.5px solid #fff; outline-offset: -6px; }
.hp-label { position: absolute; bottom: 22px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-size: 1rem; font-weight: 600; white-space: nowrap; transition: opacity .3s var(--ease); }
.hp-panel.is-open .hp-label { opacity: 0; transition-duration: .15s; }
.hp-body { position: absolute; left: clamp(20px, 2.4vw, 36px); bottom: clamp(20px, 2.4vw, 36px); z-index: 3; width: 420px; max-width: calc(100% - 40px); color: #fff; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; }
.hp-panel.is-open .hp-body { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .3s, transform .7s var(--ease) .3s, visibility 0s; }
.hp-para { font-size: .92rem; font-weight: 600; color: #f6c9d4; }
.hp-title { margin-top: 6px; font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.hp-desc { margin-top: 10px; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .9); max-width: 38ch; }
.hp-more { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 18px; padding: 0 20px; border-radius: 999px; background: var(--cream); color: var(--wine-2); font-weight: 600; }
.hp-more .arr { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.hp-more:hover .arr { transform: translateX(3px); }

/* ---------- Lo que trae una tabla: tarjetas que se expanden (CRD-012) ---------- */
.ings { display: flex; gap: 10px; height: clamp(420px, 46vw, 560px); }
.ing { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); transition: flex-grow .7s var(--ease); }
.ing.is-open { flex-grow: 4.2; }
.ing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--x) var(--y); transform: scale(2.6); transform-origin: var(--x) var(--y); transition: transform 1s var(--ease); }
.ing.is-open > img { transform: scale(1.9); }
.ing::after { z-index: 1; content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 14, 17, .74), rgba(27, 14, 17, .08) 55%); pointer-events: none; }
.ing-btn { position: absolute; inset: 0; z-index: 3; width: 100%; color: #fff; border-radius: inherit; }
.ing-btn:focus-visible { outline: 2.5px solid #fff; outline-offset: -6px; }
.ing-v { position: absolute; bottom: 22px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); font-weight: 600; font-size: 1rem; white-space: nowrap; transition: opacity .3s var(--ease); }
.ing.is-open .ing-v { opacity: 0; }
.ing-body { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2; color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.ing.is-open .ing-body { opacity: 1; transform: none; transition: opacity .5s var(--ease) .3s, transform .7s var(--ease) .3s; }
.ing-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -.03em; line-height: 1.05; }
.ing-body p { margin-top: 8px; font-size: 1rem; color: rgba(255, 255, 255, .9); max-width: 30ch; }

/* ---------- Formatos en bento (CRD-018) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 19vw, 280px); gap: 12px; }
.bx { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--card); }
.bx--a { grid-column: span 2; grid-row: span 2; }
.bx--b { grid-row: span 2; }
.bx--c, .bx--d { grid-column: span 1; }
.bx > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bx:hover > img { transform: scale(1.04); }
.bx:has(> img)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 14, 17, .7), rgba(27, 14, 17, 0) 55%); pointer-events: none; }
.bx-body { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; color: #fff; display: grid; gap: 4px; justify-items: start; }
.bx-para { font-size: .9rem; font-weight: 600; color: #f6c9d4; }
.bx-body h3 { font-size: clamp(1.25rem, 1rem + .8vw, 1.9rem); letter-spacing: -.03em; line-height: 1.05; }
.bx--a .bx-body h3 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }
.bx-body > p:not(.bx-para) { font-size: .98rem; color: rgba(255, 255, 255, .9); max-width: 34ch; }
.bx-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 600; font-size: .95rem; }
.bx-btn .arr { width: 16px; height: 16px; }
.bx--stat, .bx--cta { padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.bx--stat { background: var(--bg-2); }
.bx--stat p:last-child { color: var(--muted); font-size: 1rem; }
.bx--cta { background: var(--wine); color: var(--cream); grid-column: span 2; }
.bx--cta p:nth-child(2) { color: var(--cream-2); max-width: 36ch; }
.bx--cta .btn { align-self: flex-start; margin-top: 6px; }
.bx-big { font-size: clamp(3rem, 2rem + 3vw, 5rem); font-weight: 600; letter-spacing: -.06em; line-height: .9; }
.bx-big--sm { font-size: clamp(2rem, 1.4rem + 1.8vw, 3rem); letter-spacing: -.04em; }

/* ---------- Sello: collage alrededor del titular (HER-016, estático) ---------- */
.seal { position: relative; max-width: var(--max); margin: clamp(72px, 9vw, 140px) auto 0; padding: clamp(80px, 9vw, 130px) var(--gutter); min-height: 760px; display: grid; place-items: center; }
.seal-copy { position: relative; z-index: 2; max-width: 520px; text-align: center; display: grid; justify-items: center; }
.seal-copy .lead { margin: 18px auto 26px; }
.seal-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.seal-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); font-weight: 500; font-size: .95rem; }
.seal-facts svg { color: var(--wine); }
.seal-ph { position: absolute; z-index: 1; overflow: hidden; border-radius: var(--r); box-shadow: 0 24px 50px -24px rgba(27, 20, 21, .45); }
.seal-ph img { width: 100%; height: 100%; object-fit: cover; }
.seal-ph--1 { left: var(--gutter); top: 40px; width: clamp(180px, 20vw, 290px); aspect-ratio: 4 / 5; }
.seal-ph--2 { right: calc(var(--gutter) + 2vw); top: 20px; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; }
.seal-ph--3 { left: calc(var(--gutter) + 6vw); bottom: 20px; width: clamp(150px, 15vw, 230px); aspect-ratio: 1; }
.seal-ph--4 { right: var(--gutter); bottom: 60px; width: clamp(180px, 19vw, 280px); aspect-ratio: 4 / 5; }

/* ---------- Momentos: carrusel infinito ---------- */
.mo .hs-head { margin-bottom: 28px; }
.mo-pause { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, color .3s; }
.mo-pause:hover { background: var(--ink); color: #fff; }
.mo-pause .i-pl, .mo-pause[aria-pressed="true"] .i-pa { display: none; }
.mo-pause[aria-pressed="true"] .i-pl { display: block; fill: currentColor; }
.mo-view { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); cursor: grab; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.mo-view.is-drag { cursor: grabbing; }
.mo-track { display: flex; gap: 14px; width: max-content; will-change: transform; user-select: none; }
.mo-card { position: relative; flex: none; width: clamp(240px, 26vw, 360px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.mo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27, 14, 17, .7), rgba(27, 14, 17, 0) 50%); }
.mo-card div { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; }
.mo-card h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.mo-card p { font-size: .95rem; color: rgba(255, 255, 255, .9); }

/* ---------- Arma tu pedido (CTA-003) ---------- */
.arma { margin-top: clamp(72px, 9vw, 140px); background: var(--wine); color: var(--cream); }
.arma-in { max-width: var(--max); margin: auto; padding: clamp(64px, 8vw, 120px) var(--gutter); }
.arma-head { font-size: clamp(2.6rem, 1rem + 5.2vw, 6.4rem); line-height: .92; letter-spacing: -.055em; max-width: 14ch; }
.arma-head em { font-style: normal; color: #f6c9d4; }
.arma-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.arma-intro { color: var(--cream-2); max-width: 46ch; margin-bottom: 26px; }
.arma-form fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.arma-form legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(244, 236, 225, .1); font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.chips input:checked + span { background: var(--cream); color: var(--wine-2); }
.chips input:focus-visible + span, .arma-check input:focus-visible + span { outline: 2.5px solid var(--cream); outline-offset: 2px; }
.arma-date { display: grid; gap: 10px; max-width: 280px; margin-bottom: 18px; }
.arma-date span { font-weight: 600; }
.arma-date input { min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(244, 236, 225, .1); color: var(--cream); color-scheme: dark; }
.arma-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.arma-check input { width: 20px; height: 20px; accent-color: var(--cream); }
.arma-msg { background: #3a0c1a; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.arma-msg-k { font-size: .9rem; font-weight: 600; color: #f6c9d4; }
.arma-msg-t { font-size: 1.15rem; line-height: 1.55; white-space: pre-line; min-height: 7.5em; }
.arma .copied { color: var(--cream-2); font-size: .92rem; min-height: 1.4em; }

/* ---------- Instagram ---------- */
.ig { padding-bottom: clamp(72px, 9vw, 140px); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-cell { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ig-cell:hover img { transform: scale(1.05); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hp-meta { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .bx--a { grid-column: span 2; grid-row: span 2; }
  .bx--b { grid-row: span 2; }
  .bx--cta { grid-column: span 2; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .seal { min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 0; padding-bottom: 0; }
  .seal-ph { position: static; width: calc(33.333% - 7px); aspect-ratio: 4 / 5; }
  .seal-ph--4 { display: none; }
  .seal-copy { order: 10; width: 100%; margin-top: 28px; }
}
@media (max-width: 760px) {
  .hp-meta-r { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hp-head { white-space: normal; line-height: .92; font-size: clamp(44px, 14.5vw, 96px); }
  .hp-acc { flex-direction: column; height: 600px; flex: none; min-height: 0; gap: 8px; }
  .hp-panel { min-height: 56px; }
  .hp-panel.is-open { flex-grow: 9; }
  .hp-label { writing-mode: horizontal-tb; transform: translateY(-50%); top: 50%; bottom: auto; left: 20px; right: 20px; }
  .hp-body { left: 18px; right: 18px; bottom: 18px; width: auto; max-width: none; }
  .ings { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .ings::-webkit-scrollbar { display: none; }
  .ing, .ing.is-open { flex: 0 0 78%; height: 380px; scroll-snap-align: center; }
  .ing > img, .ing.is-open > img { transform: scale(1.9); }
  .ing .ing-v { opacity: 0; }
  .ing .ing-body { opacity: 1; transform: none; }
  .ing-btn { pointer-events: none; }
  .arma-grid { grid-template-columns: 1fr; }
  .arma-msg { position: static; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bx--a, .bx--b, .bx--cta { grid-column: auto; grid-row: auto; }
  .bx { height: 300px; }
  .bx--a { height: 400px; }
  .bx--stat, .bx--cta { height: auto; min-height: 200px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .seal-ph { width: calc(50% - 5px); }
  .seal-ph--3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-panel, .hp-panel > img, .ing, .hp-body, .ing-body, .bx > img, .ig-cell img { transition: none !important; }
}
