/* Editorial layout scoped to Nuestra historia. */
#historia {
  --story-paper: #faf7f1; --story-ink: #38130f; --story-wine: #850d43;
  --story-earth: #b27d42; --story-text: #625951;
  display: block; position: relative; isolation: isolate;
  padding: clamp(40px, 4.4vw, 72px) clamp(20px, 4vw, 64px);
  background: var(--story-paper);
  background-image: radial-gradient(rgb(178 125 66 / 5%) .6px, transparent .6px);
  background-size: 7px 7px;
}
#historia::before, #historia::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 180px; height: 180px; background: url("story-botanical.svg") center / contain no-repeat; opacity: .22; }
#historia::before { top: 0; left: 0; }
#historia::after { bottom: 0; right: 0; transform: rotate(180deg); }
#historia .story-layout { max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: minmax(0,45fr) minmax(0,55fr); grid-template-areas: "copy gallery" "bottom gallery"; column-gap: clamp(48px,4vw,64px); row-gap: 20px; align-items: start; }
#historia .story-copy { grid-area: copy; max-width: none; min-width: 0; }
#historia .story-bottom { grid-area: bottom; min-width: 0; }
#historia .story-visuals { grid-area: gallery; min-width: 0; display: block; }
#historia .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 11px; letter-spacing: .16em; color: #815121; }
#historia .eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
#historia h2 { margin: 0; color: var(--story-ink); font: 700 clamp(32px,3.15vw,52px)/1.08 Georgia,"Times New Roman",serif; letter-spacing: -.035em; }
#historia .story-flourish { display: block; margin: 14px 0 18px; color: #94602d; }
#historia .story-copy > p:not(.eyebrow) { margin: 0 0 15px; color: var(--story-text); font-size: 14px; line-height: 1.6; }
#historia .story-highlights { display: grid; margin-top: 24px; gap: 16px; grid-template-columns: repeat(3,minmax(0,1fr)); }
#historia .story-highlights article { min-height: 0; padding: 0 0 0 16px; border: 0; border-left: 1px solid #e5d8c5; border-radius: 0; background: transparent; display: flex; flex-direction: column; gap: 7px; }
#historia .story-highlights article:first-child { padding-left: 0; border-left: 0; }
#historia .story-metric-icon { box-sizing: content-box; padding: 10px; margin-bottom: 2px; color: #8d5628; background: #f3e8d8; border-radius: 50%; }
#historia .story-highlights strong { color: var(--story-wine); font: 700 clamp(18px,1.55vw,24px)/1.15 Georgia,serif; }
#historia .story-highlights span { color: var(--story-text); font-size: 12px; line-height: 1.45; }
#historia .story-source { margin: 0 0 18px; color: var(--story-text); font-size: 12px; line-height: 1.65; }
#historia .story-source a { font-weight: 500; color: #754421; text-underline-offset: 3px; }
#historia .story-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
#historia .story-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; padding: 12px 15px; min-height: 46px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; box-shadow: none; transition: background-color .2s, transform .2s; }
#historia .story-actions svg { flex: 0 0 20px; width: 20px; height: 20px; }
#historia .button.primary { background: var(--story-wine); color: #fff; border: 1px solid var(--story-wine); }
#historia .button.secondary { background: transparent; border: 1px solid var(--story-wine); color: var(--story-wine); }
#historia .button:hover { transform: translateY(-1px); }
#historia .button.primary:hover { background: #681035; }
#historia .button.secondary:hover { background: #f3e8e7; }
#historia .story-carousel { display: block; border-radius: 26px; }
#historia .story-gallery-stage { position: relative; }
#historia .story-carousel-slides { position: relative; width: 100%; aspect-ratio: 1.16; overflow: hidden; border: 3px solid #e7dece; border-radius: 24px; background: #f4eee3; box-shadow: 0 8px 24px rgb(56 19 15 / 5%); touch-action: pan-y pinch-zoom; }
#historia .story-slide { position: absolute; inset: 0; margin: 0; z-index: 0; }
#historia .story-slide[hidden] { display: none; }
#historia .story-slide.is-active { z-index: 1; }
#historia .story-slide picture { width: 100%; height: 100%; }
#historia .story-slide img { display: block; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: var(--story-position,50% 50%); background: transparent; }
#historia .story-slide figcaption { padding: 0; }
#historia .story-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgb(56 19 15 / 8%); border-radius: 50%; color: var(--story-ink); background: rgb(255 253 248 / 93%); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
#historia .story-arrow-previous { left: 16px; }
#historia .story-arrow-next { right: 16px; }
#historia .story-arrow:hover { background: #fff; box-shadow: 0 3px 10px rgb(56 19 15 / 12%); }
#historia .story-carousel-controls { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 16px 4px 0; }
#historia .story-caption { grid-column: auto; margin: 0; min-height: 2.8em; color: var(--story-text); font-size: 12px; line-height: 1.4; }
#historia .story-carousel-toggle { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--story-ink); font-size: 12px; font-weight: 500; cursor: pointer; }
#historia .story-playback-symbol { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #8d5628; border-radius: 50%; }
#historia .story-playback-symbol::before { content: "Ⅱ"; font-size: 14px; }
#historia [data-paused="true"] .story-playback-symbol::before { content: "▶"; font-size: 11px; }
#historia .story-carousel-dots { display: flex; flex-flow: row nowrap; align-items: center; justify-content: flex-start; gap: 6px; }
#historia .story-carousel-dots button { display: grid; place-items: center; padding: 0; min-width: 44px; min-height: 44px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3e8d8; color: var(--story-ink); font: 600 14px Georgia,serif; cursor: pointer; }
#historia .story-carousel-dots button[aria-current="true"] { background: var(--story-wine); color: #fff; }
#historia :is(a,button,[tabindex]):focus-visible { outline: 3px solid var(--story-wine); outline-offset: 4px; box-shadow: 0 0 0 7px var(--story-paper); }
#historia .story-gallery-status { margin: 8px 0 0; color: var(--story-wine); font-size: 13px; }
#historia .story-gallery-status:empty { display: none; }
@media (min-width: 1200px) and (max-width: 1279px) { #historia .story-caption { min-height: 4.2em; } #historia .story-actions .button { font-size: 11.5px; padding-inline: 9px; gap: 6px; } #historia .story-actions svg { flex-basis: 18px; width: 18px; } }
@media (max-width: 1199px) { #historia .story-layout { max-width: 820px; grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "gallery" "bottom"; gap: 28px; } #historia h2 { max-width: 20ch; font-size: clamp(34px,4.6vw,46px); } #historia .story-copy > p:not(.eyebrow) { font-size: 16px; } #historia .story-highlights strong { font-size: 23px; } #historia .story-highlights span { font-size: 14px; } #historia .story-actions .button { font-size: 13px; padding-inline: 22px; } }
@media (max-width: 767px) { #historia { padding: 40px 20px; } #historia .story-layout { gap: 24px; } #historia h2 { font-size: clamp(32px,8vw,42px); } #historia .story-copy > p:not(.eyebrow) { font-size: 15px; line-height: 1.65; } #historia .story-highlights { gap: 12px; } #historia .story-highlights article { padding-left: 12px; } #historia .story-metric-icon { padding: 8px; width: 22px; height: 22px; } #historia .story-highlights strong { font-size: 18px; } #historia .story-highlights span { font-size: 12px; } #historia .story-carousel-slides { border-width: 2px; border-radius: 22px; } #historia .story-arrow { width: 44px; height: 44px; } #historia .story-arrow-previous { left: 10px; } #historia .story-arrow-next { right: 10px; } #historia .story-carousel-controls { grid-template-columns: minmax(0,1fr); gap: 4px; } #historia .story-caption { grid-column: auto; } #historia .story-carousel-dots { justify-content: flex-start; } #historia .story-actions { flex-direction: column; } #historia .story-actions .button { width: 100%; white-space: normal; font-size: 13px; } }
@media (max-width: 374px) { #historia .story-highlights { grid-template-columns: minmax(0,1fr); gap: 16px; } #historia .story-highlights article { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; border: 0; padding: 0; } #historia .story-metric-icon { grid-row: span 2; } }
@media (prefers-reduced-motion: reduce) { #historia *, #historia *::before { transition: none !important; } }
