/* Santa Petronila · ritmo editorial y detalles · v5 */
:root{--motion-ease:cubic-bezier(.22,1,.36,1);--vine-gold:#b49a63}
::selection{background:#d9cba6;color:#27362d}
header{transition:background .35s,box-shadow .35s,border-color .35s}
body.has-scrolled header{background:var(--paper);box-shadow:0 8px 28px #27362d0b;border-color:#d4d0c3}
.mobile-booking{display:none}
nav a{position:relative;padding:7px 0}
nav a:after{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--rust);transform:scaleX(0);transform-origin:left;transition:transform .4s var(--motion-ease)}
nav a:hover:after,nav a:focus-visible:after,nav a[aria-current="page"]:after{transform:scaleX(1)}
nav a[aria-current="page"]{color:var(--rust)}
.reading-progress{position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:var(--vine-gold);transform:scaleX(0);transform-origin:left;pointer-events:none}
.hero,.detail-banner{overflow:hidden}
.motion-enabled .hero-photo,.motion-enabled .detail-banner>img{animation:petronila-landscape 1.8s var(--motion-ease) both}
.motion-enabled .hero-copy>* ,.motion-enabled .detail-banner>div>*{animation:petronila-enter 1s var(--motion-ease) both}
.motion-enabled .hero-copy>:nth-child(2),.motion-enabled .detail-banner>div>:nth-child(2){animation-delay:.09s}
.motion-enabled .hero-copy>:nth-child(3),.motion-enabled .detail-banner>div>:nth-child(3){animation-delay:.18s}
.motion-enabled .hero-copy>:nth-child(4){animation-delay:.27s}
.motion-enabled .hero-bottom{animation:petronila-enter 1s .4s var(--motion-ease) both}
.motion-reveal{opacity:0;transform:translateY(24px);transition:opacity .85s var(--motion-ease),transform .85s var(--motion-ease);transition-delay:var(--reveal-delay,0ms)}
.motion-reveal.is-visible{opacity:1;transform:none}
.motion-reveal:focus-within{opacity:1;transform:none;transition-delay:0ms}
.btn,.header-cta,.quick-add,.calendar-controls button,.contact-options button{position:relative;transition:background .3s,color .3s,border-color .3s,box-shadow .3s,transform .3s var(--motion-ease)}
.btn:hover,.header-cta:hover{box-shadow:0 8px 22px #27362d14;transform:translateY(-2px)}
.header-cta:hover{background:var(--ink);color:var(--paper)}
.btn:active,.header-cta:active,.quick-add:active{transform:translateY(0);box-shadow:none}
.text-link,.view-wine{transition:color .25s,border-color .25s}
.text-link:hover,.view-wine:hover{color:var(--rust);border-color:var(--rust)}
.quick-add:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.quick-add.is-added{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.wine-image{overflow:hidden;background:linear-gradient(145deg,#eee9df,#e3ddcf);border:1px solid #ded8c93d;transition:background .4s,box-shadow .4s}
.wine-image img{transition:transform .75s var(--motion-ease),filter .75s}
.wine-card .view-wine{border-bottom:1px solid transparent;padding-bottom:5px}
.wine-card:hover .view-wine{border-color:var(--rust)}
.wine-card h3{transition:color .3s}
.wine-card:hover h3{color:var(--rust)}
.wine-card:focus-within .wine-image{box-shadow:0 0 0 1px var(--vine-gold)}
.shop-tabs button,.gallery-tabs button{position:relative;transition:color .25s,border-color .25s}
.world img,.gallery-item img,.press-card>img{transition:transform 1s var(--motion-ease),filter .6s}
.world>div{transition:transform .6s var(--motion-ease)}
.gallery-item{overflow:hidden;position:relative}
.gallery-item:after{content:'↗';position:absolute;bottom:14px;right:14px;width:34px;height:34px;border:1px solid #fff8;color:white;background:#27362d75;display:grid;place-items:center;opacity:0;transform:translateY(8px);transition:opacity .3s,transform .4s var(--motion-ease);pointer-events:none}
.gallery-item:focus-visible:after{opacity:1;transform:none}
.press-card{overflow:hidden;transition:box-shadow .4s}
.press-card:hover{box-shadow:0 12px 35px #27362d0d}
summary{transition:color .25s}
summary:hover{color:var(--rust)}
details[open]>p{animation:petronila-enter .4s var(--motion-ease) both}
summary:after{transition:transform .3s var(--motion-ease);color:var(--rust)}
details[open] summary:after{transform:rotate(180deg)}
input,textarea,select{transition:border-color .25s,background .25s,box-shadow .25s}
input:focus,textarea:focus,select:focus{border-color:var(--rust);background:#faf7f0;box-shadow:0 3px 0 #b49a632b}
.calendar-grid button{border-radius:2px;transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.calendar-grid button:not(:disabled):hover{background:#d9d1bf;box-shadow:inset 0 0 0 1px #b49a63;transform:translateY(-1px)}
.calendar-grid button.selected{background:var(--ink);color:var(--paper);box-shadow:inset 0 -2px 0 var(--vine-gold)}
.calendar-grid button.selected:hover{background:#34483b}
.calendar-controls button:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.reservation-box{border:1px solid #d7d0c0;box-shadow:0 18px 50px #27362d06}
.demo-state{border-left:2px solid var(--vine-gold)}
dialog{border:1px solid #d6cfbf;box-shadow:0 28px 120px #14201840}
dialog[open]{animation:petronila-dialog .35s var(--motion-ease) both}
dialog[open]::backdrop{background:#142018a6;animation:petronila-fade .35s both}
.close{transition:background .25s,transform .3s}
.close:hover{background:#e9e3d6;transform:rotate(90deg)}
.selection-notice{position:fixed;bottom:26px;right:26px;z-index:30;max-width:min(400px,calc(100vw - 36px));padding:17px 22px;background:var(--ink);color:var(--paper);border-left:2px solid var(--vine-gold);box-shadow:0 12px 45px #14201830;font-size:13px;opacity:0;transform:translateY(12px);transition:opacity .3s,transform .4s var(--motion-ease);pointer-events:none}
.selection-notice.is-visible{opacity:1;transform:none}
@media(hover:hover) and (pointer:fine){.wine-card:hover .wine-image img{transform:translateY(-5px) scale(1.045)}.world:hover img{transform:scale(1.045)}.world:hover>div{transform:translateY(-6px)}.gallery-item:hover img{transform:scale(1.04)}.gallery-item:hover:after{opacity:1;transform:none}.press-card:hover>img{filter:saturate(1.06)}}
@media(max-width:760px){nav.open{animation:petronila-menu .28s var(--motion-ease) both}nav.open a{padding:9px 0}nav.open .mobile-booking{display:flex;justify-content:center;background:var(--ink);color:var(--paper);padding:12px 18px;margin-top:12px}nav.open .mobile-booking:after{display:none}.btn:hover,.header-cta:hover{transform:none}.selection-notice{bottom:18px;right:18px;font-size:12px}.motion-reveal{transform:translateY(16px)}.private-notice{font-size:9px;letter-spacing:.04em;padding:9px 18px}.reservation-box{box-shadow:none}}
@keyframes petronila-enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
@keyframes petronila-landscape{from{transform:scale(1.045)}to{transform:scale(1)}}
@keyframes petronila-dialog{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes petronila-menu{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@keyframes petronila-fade{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.motion-reveal{opacity:1;transform:none}.motion-enabled .hero-photo,.motion-enabled .hero-copy>*,.motion-enabled .hero-bottom,.motion-enabled .detail-banner>img,.motion-enabled .detail-banner>div>*,dialog[open],dialog[open]::backdrop,details[open]>p,nav.open{animation:none!important}.btn,.header-cta,.quick-add,.wine-image img,.world img,.world>div,.gallery-item img,.press-card>img,.motion-reveal,.selection-notice,.calendar-grid button,.close,nav a:after{transition:none!important}.world:hover img,.world:hover>div,.wine-card:hover .wine-image img,.gallery-item:hover img,.close:hover,.calendar-grid button:hover,.btn:hover,.header-cta:hover{transform:none!important}}

/* Client notes: visible conditions and the direct WhatsApp consultation. */
.stay-conditions{margin:2rem 0 3rem;color:var(--ink)}
.stay-conditions h3{font:normal clamp(1.5rem,2.5vw,2rem)/1.2 var(--serif);margin:0 0 1.4rem}
.stay-conditions ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:2.5rem}
.stay-conditions li{border-top:1px solid var(--line);padding:1rem 0;font-size:15px;line-height:1.65}
.stay-conditions strong{font-weight:600}
.stay-conditions>p{font-size:14px;margin:1rem 0 0;max-width:70ch}
.whatsapp-float{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:30;display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:12px 18px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);border-radius:28px;font:600 14px/1 Arial,sans-serif;box-shadow:0 4px 12px rgba(39,54,45,.18);transition:background-color .18s ease}
.whatsapp-float svg{width:24px;height:24px;flex:none}
.whatsapp-float:focus-visible{outline:3px solid var(--rust);outline-offset:4px}
body:has(nav.open) .whatsapp-float,body:has(dialog[open]) .whatsapp-float,body:has(input:focus,textarea:focus,select:focus) .whatsapp-float{visibility:hidden}
@media(hover:hover){.whatsapp-float:hover{background:#3a4d40}}
@media(max-width:700px){.stay-conditions ul{grid-template-columns:1fr}.hero-bottom{bottom:86px}.whatsapp-float{right:16px;bottom:max(16px,env(safe-area-inset-bottom));min-height:48px;padding:10px 15px}footer{padding-bottom:100px}}

/* Actual client bottle photographs retain their full silhouette on the existing paper surface. */
:is(.wine-image,.product-detail,.basket-line)>img[src*="/client-20261007/"]{mix-blend-mode:multiply}
:is(.world,.experience-card)>img[src*="servicio-desde-bota"]{object-position:50% 68%}
.story-photo img[src*="brita-y-agustin"]{object-position:25% 45%}

.offer-separation{margin:24px 0 40px;padding:18px 22px;border-left:2px solid var(--vine-gold);background:#e9e5da;font-size:13px;line-height:1.7}.offer-separation a{display:inline-block;text-decoration:underline;text-underline-offset:4px}.visit-practical>.btn{margin-top:30px}.inquiry-whatsapp{margin:24px 0 10px}#edit-query{margin-top:14px}@media(max-width:760px){.offer-separation{padding:16px;font-size:12px}}

/* Open photographic mounts: two olive corners, separated from the image.
   Paint on the image's padding box: no overlay, extra DOM or blocked clicks. */
:is(.house-editorial, .room-grid, .craft-grid) img,
:is(.cellar-editorial, .story-photo, .experience-card, .press-card, .gallery-item) > img,
.contact > aside > img {
  --photo-frame-gap: 14px;
  --photo-frame-line: #777c60a6;
  --photo-frame-arm: clamp(38px, 28%, 150px);
  padding: var(--photo-frame-gap);
  background:
    linear-gradient(var(--photo-frame-line), var(--photo-frame-line)) left top / var(--photo-frame-arm) 1px no-repeat,
    linear-gradient(var(--photo-frame-line), var(--photo-frame-line)) left top / 1px var(--photo-frame-arm) no-repeat,
    linear-gradient(var(--photo-frame-line), var(--photo-frame-line)) right bottom / var(--photo-frame-arm) 1px no-repeat,
    linear-gradient(var(--photo-frame-line), var(--photo-frame-line)) right bottom / 1px var(--photo-frame-arm) no-repeat;
}

/* Keep the mount still when a gallery photograph is focused or hovered. */
.gallery-item:hover > img,
.gallery-item:focus-visible > img {
  transform: none;
}

@media (max-width: 760px) {
  :is(.house-editorial, .room-grid, .craft-grid) img,
  :is(.cellar-editorial, .story-photo, .experience-card, .press-card, .gallery-item) > img,
  .contact > aside > img {
    --photo-frame-gap: 9px;
    --photo-frame-arm: clamp(28px, 25%, 95px);
  }
}

/* Client revision: editorial composition and open photo mounts retained. */
.wine-price{font-family:var(--serif);font-size:28px;line-height:1.2;margin:18px 0 12px;font-variant-numeric:tabular-nums}
.price-period{font-size:12px;color:var(--ink);margin:0 0 24px}
.wine-typographic{display:flex;min-height:100%;padding:35px 20px;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:var(--ink);background:#e9e5da}
.wine-typographic>span{font:italic 21px/1.4 var(--serif)}
.wine-typographic>strong{font:400 clamp(28px,3vw,46px)/1.1 var(--serif);margin:38px 0 12px}
.wine-typographic>em{font:400 18px/1.4 var(--serif)}
.wine-image.is-typographic{display:block;width:100%;padding:0}
.product-detail>.wine-typographic{min-height:400px}
.basket-line>.wine-typographic{min-height:110px;padding:12px 5px}
.basket-line>.wine-typographic>span{font-size:11px}
.basket-line>.wine-typographic>strong{font-size:18px;margin:12px 0 5px}
.basket-line>.wine-typographic>em{font-size:12px}
.selection-totals{margin:24px 0;font-size:14px;max-width:520px}
.selection-totals>div{display:flex;justify-content:space-between;gap:24px;padding:10px 0}
.selection-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.selection-totals .selection-total{border-top:1px solid var(--line);margin-top:8px;font-weight:600}
#cart-minimum,#checkout-minimum{font-size:13px;line-height:1.7;margin:20px 0}
.checkout-grid aside>h3{margin-top:0}
.affiliations{padding:60px 6%;background:var(--ink);color:var(--paper)}
.affiliations-inner{max-width:1300px;margin:auto;display:grid;grid-template-columns:1fr 1fr 1fr;gap:50px;align-items:center}
.affiliations figure{display:flex;min-height:140px;align-items:center;justify-content:center}
.affiliations img{display:block;width:100%;max-width:280px;height:105px;object-fit:contain}
.affiliations .brand-seal{max-width:180px;height:150px}
.affiliations figcaption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.wine-full+.section{margin-top:70px}
.detail-banner+.vineyard{margin-top:clamp(36px,6vw,88px)}
.bodega-copy{max-width:78ch}
.bodega-copy p{margin:22px 0}
.experience-card>.client-tasting-photo{object-fit:contain;object-position:center;height:auto;min-height:0;aspect-ratio:4/3;align-self:center;background-color:#e9e5da}
@media(max-width:760px){
  .affiliations{padding:45px 7%}
  .affiliations-inner{grid-template-columns:1fr 1fr;gap:28px 22px}
  .affiliations figure:first-child{grid-column:1/-1}
  .affiliations figure{min-height:65px}
  .affiliations img{height:65px;max-width:220px}
  .affiliations .brand-seal{height:130px;max-width:160px}
  .selection-totals{font-size:13px}
  .selection-totals>div{gap:15px}
  .wine-price{font-size:25px}
  .product-detail>.wine-typographic{min-height:280px}
  .wine-full+.section{margin-top:40px}
  .experience-card>.client-tasting-photo{height:auto;min-height:0;aspect-ratio:4/3}
}

/* Optional tasting notes stay with each wine; the approved visual system remains. */
/* Keep the longer approved headline and footer in normal flow at every height. */
.hero.hero-brita{display:flex;flex-direction:column;justify-content:space-between;height:auto;min-height:630px;max-height:none;padding:clamp(48px,6vw,88px) 6% 28px}
.hero-brita .hero-copy{position:relative;inset:auto;width:100%}
.hero-brita .hero-bottom{position:relative;inset:auto;margin-top:40px;width:100%;flex-shrink:0}
@media(max-width:760px){.hero.hero-brita{min-height:0;padding:40px 6% 26px}.hero-brita .hero-bottom{margin-top:36px}}
.wine-notes{margin:20px 0 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.winery-intro .section-head,.winery-intro .editorial-grid{grid-template-columns:.7fr 1.3fr;gap:8%;align-items:start}
.winery-intro .section-head h2{margin-top:0}
.winery-intro .editorial-grid>article{grid-column:2}
@media(max-width:760px){.winery-intro .section-head,.winery-intro .editorial-grid{grid-template-columns:1fr;gap:24px}.winery-intro .editorial-grid>article{grid-column:auto}}
.wine-notes summary{list-style:none;display:flex;justify-content:space-between;gap:16px;padding:14px 0;cursor:pointer;font-size:13px;text-align:left}
.wine-notes summary::-webkit-details-marker{display:none}
.wine-notes[open] summary>span{transform:rotate(45deg)}
.wine-notes>div{padding:0 0 20px;text-align:left}
.wine-notes h4{font:18px/1.3 var(--serif);margin:20px 0 8px}
.wine-notes>div p{font:14px/1.7 Arial,sans-serif;max-width:65ch;margin:0}
.wine-notes>div p+p{margin-top:12px}
.wine-card:has(.wine-notes[open]){align-self:start}
.event-row{grid-template-columns:1fr 1fr;align-items:start;gap:8%}
.event-row>div>p{max-width:52ch}
.craft-grid-captioned figcaption{font-size:13px;line-height:1.6;padding-top:18px;max-width:45ch}
.craft-grid-captioned figure{margin:0}
.house-editorial .small{align-self:center}
.hero-copy h1{font-size:clamp(54px,6.4vw,104px);letter-spacing:-.035em;line-height:1.02;max-width:16ch}
.hero-copy{top:10%;right:6%}
.hero-text{max-width:60ch}
.detail-banner.wine-landscape{display:grid;grid-template-columns:.8fr 1.2fr;align-items:center;gap:6%;height:auto;min-height:0;max-height:none;padding:60px 6%;background:var(--paper);color:var(--ink)}
.detail-banner.wine-landscape:after{display:none}
.detail-banner.wine-landscape>img{grid-column:2;grid-row:1;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
.detail-banner.wine-landscape>div{grid-column:1;grid-row:1;position:static;max-width:none}
.detail-banner.wine-landscape h1{font-size:clamp(48px,5.5vw,84px);letter-spacing:-.035em}
.room-grid.room-grid-curated{grid-template-columns:1.3fr 1fr;align-items:center;gap:clamp(24px,5vw,70px)}
.room-grid.room-grid-curated figure:last-child{grid-column:1/-1;max-width:720px;width:75%;margin:20px auto 0}
.room-grid.room-grid-curated img{height:auto;aspect-ratio:3/2;object-fit:cover}
.room-grid.room-grid-curated .room-photo-detail{width:75%;justify-self:center}
.room-grid.room-grid-curated .room-photo-detail img{aspect-ratio:2/3;object-fit:contain}
@media(max-width:760px){
 .room-grid.room-grid-curated{grid-template-columns:1fr;gap:32px}
 .room-grid.room-grid-curated figure:last-child{width:86%;margin:0 auto}
 .room-grid.room-grid-curated .room-photo-detail{width:78%}
 .detail-banner.wine-landscape{grid-template-columns:1fr;gap:30px;padding:35px 6%}
 .detail-banner.wine-landscape>div{grid-column:1;grid-row:1}
 .detail-banner.wine-landscape>img{grid-column:1;grid-row:2}
 .detail-banner.wine-landscape h1{font-size:52px}
 .wine-notes summary{min-height:48px}
 .wine-card:has(.wine-notes[open]){grid-column:1/-1}
 .event-row{grid-template-columns:1fr;gap:24px}
 .hero-copy h1{font-size:clamp(42px,11vw,65px);letter-spacing:-.035em;max-width:12ch}
 .hero-copy{right:6%;top:10%}
 .hero-text{max-width:32ch;font-size:15px}
}

/* Brita's gallery reference: equal photographs, captions kept in the viewer. */
:root{--paper:#eef2e9;--line:#ced7c6}
header{border-bottom-color:#dce3d6}
.gallery-section,.practical,.deeper,.guest-notes,.experience-card{background:#e5ecdf}
.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;columns:auto}
.gallery-item{margin:0;aspect-ratio:3/2}
.gallery-item>img{height:100%;max-height:none;aspect-ratio:3/2;object-fit:cover}
.photo-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}
.photo-controls button{border:1px solid var(--line);color:var(--ink);background:var(--paper);padding:12px 18px;min-height:44px}
.photo-controls span{font-size:12px}
.house-menu-banner{height:auto;min-height:660px;max-height:none;display:grid;align-items:center;padding:75px 6%;position:relative}
.house-menu-banner>img{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:center}
.house-menu-banner>div{position:relative;inset:auto;z-index:1;max-width:760px}
.house-menu-banner h1{font-size:clamp(52px,6.4vw,92px);letter-spacing:-.035em}
.house-capacity{display:block;font-size:.6em;margin-top:18px}
.house-menu-banner>div>p:last-child{max-width:48ch}
.room-grid.room-grid-house-menu{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start}
.room-grid.room-grid-house-menu figure{width:100%;max-width:none;margin:0;grid-column:auto}
.room-grid.room-grid-house-menu img{height:auto;aspect-ratio:3/2;object-fit:cover}
.film-grid>.film-portrait{grid-column:1/-1;width:min(100%,360px);justify-self:center}
.film-grid>.film-portrait video{width:100%;height:auto;max-height:640px;aspect-ratio:9/16;object-fit:contain;background:var(--ink)}
#house-inline-calendar{scroll-margin-top:120px}
@media(max-width:760px){
 .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .house-menu-banner{padding:55px 6%;min-height:600px}
 .house-menu-banner h1{font-size:clamp(43px,11vw,65px)}
 .house-menu-banner>div>p:last-child{font-size:15px}
 .room-grid.room-grid-house-menu{grid-template-columns:1fr;gap:28px}
 .film-grid>.film-portrait{width:min(100%,310px)}
 .photo-controls button{padding:12px}
}

/* Brita, 25/29 October: continuous real photographs, no mounts or captions. */
:is(.house-editorial,.room-grid,.craft-grid) img,
:is(.cellar-editorial,.story-photo,.experience-card,.press-card,.gallery-item)>img,
.contact>aside>img{
  padding:0;background:none;border:0;border-radius:0;
}
.gallery-item::after{content:none}
.gallery-item:hover img,.gallery-item:focus-visible img{transform:none}
.gallery-item:focus-visible{outline:3px solid var(--ink);outline-offset:-4px}
.photo-story-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
  margin-block:28px;align-items:stretch;
}
.section:has(>.photo-story-grid){max-width:none;padding-inline:6vw}
.section>.photo-story-grid{
  width:calc(100% + 12vw);max-width:none;margin-inline:-6vw;
}
.photo-story-grid .gallery-item{
  display:block;width:100%;min-width:0;padding:0;border:0;background:none;
  aspect-ratio:3/2;overflow:hidden;border-radius:0;cursor:zoom-in;
}
.photo-story-grid .gallery-item>img{
  display:block;width:100%;height:100%;aspect-ratio:3/2;
  object-fit:cover;padding:0;background:none;transition:none;
}
.gallery-section{padding-inline:0;max-width:none}
.gallery-section>.section-head,.gallery-section>.gallery-tabs,
.gallery-section>#gallery-tabs{margin-inline:6vw}
.gallery-section>.section-head{width:auto}
#gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;column-count:auto}
#gallery-grid>.gallery-item{width:100%;padding:0;border:0;border-radius:0;aspect-ratio:3/2}
#gallery-grid>.gallery-item>img{display:block;width:100%;height:100%;padding:0;background:none;object-fit:cover}
.section:has(>.photo-story-grid),.section:has(>.technical-details){padding-block:64px}
.technical-details,details.stay-details,.shipping-details{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:18px 0;margin:28px 0;background:transparent;
}
:is(.technical-details,.stay-details,.shipping-details)>summary{
  cursor:pointer;font-size:16px;line-height:1.5;min-height:32px;
  font-weight:500;color:var(--ink);padding-right:24px;
}
:is(.technical-details,.stay-details,.shipping-details)>summary:focus-visible{outline:2px solid var(--ink);outline-offset:5px}
:is(.technical-details,.stay-details,.shipping-details)>div{padding-top:18px;max-width:75ch}
.stay-details>div{max-width:none}
.technical-details p{max-width:72ch;line-height:1.7}
.shipping-details{margin-top:0;margin-bottom:32px}
.compact-cta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:28px}
#consulta{scroll-margin-top:110px}
.reserve-layout{margin-top:28px}
.reservation-box h2{font-size:clamp(26px,3vw,40px);line-height:1.1}
.guest-notes{padding-block:48px}
.guest-notes .section-head{margin-bottom:24px}
.header-cta{white-space:nowrap}
.craft-grid img{margin-bottom:0;object-fit:cover}
.craft-grid figcaption{display:none}
.product-detail .full-wine-copy{max-width:65ch}
.product-detail .full-wine-copy h3{margin-top:26px}
@media(max-width:1100px){
  .section:has(>.photo-story-grid),.section:has(>.technical-details){padding-block:48px}
}
@media(max-width:760px){
  .photo-story-grid{grid-template-columns:1fr;gap:6px;margin-block:24px}
  #gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
  .section:has(>.photo-story-grid){padding-inline:6vw}
  .gallery-section>.section-head,.gallery-section>.gallery-tabs,
  .gallery-section>#gallery-tabs{margin-inline:6vw}
  :is(.technical-details,.stay-details,.shipping-details)>summary{font-size:15px}
  #consulta{scroll-margin-top:92px}
  .photo-controls{gap:8px}
  .photo-controls button{padding:10px;min-height:44px}
  .guest-notes{padding-block:36px}
}

/* QA 2026-11-11: sin foto huerfana ni hueco en grupos impares; enlace final con margen */
@media(min-width:761px){
  .photo-story-grid:has(>.gallery-item:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
  .photo-story-grid:not(:has(>.gallery-item:nth-child(3):last-child))>.gallery-item:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:3/1}
  .photo-story-grid:not(:has(>.gallery-item:nth-child(3):last-child))>.gallery-item:last-child:nth-child(odd)>img{aspect-ratio:3/1}
}
main>.compact-inquiry{max-width:1800px;margin:0 auto;padding:8px 6% 72px}
