/* Adega Corvelle · web
   Niebla atlántica, tinta verde y un solo dorado: el del albariño.
   La personalidad la llevan la Newsreader y el plano del valle. */

:root {
  --mist: #ECEFEA;
  --paper: #F7F8F5;
  --ink: #16231D;
  --ink-2: #44544C;
  --muted: #6E7C74;
  --line: #CDD4CC;
  --line-2: #DFE4DD;
  --vine: #2F5D46;
  --vine-2: #24493A;
  --gold: #C9A43A;
  --gold-ink: #8A6C17;
  --ria: #4E6E7B;
  --sea: #D5DFE0;
  --display: "Newsreader", Georgia, serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 400 17px/1.6 var(--text); font-feature-settings: "kern", "liga", "lnum" 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vine); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* tipografía */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.02; margin: 0; letter-spacing: -.012em; }
h1 { font-size: clamp(46px, 8.4vw, 118px); }
h2 { font-size: clamp(36px, 5.2vw, 72px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* cabecera */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--mist) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line-2); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 34px; height: 34px; color: var(--ink); }
.logo b { font-family: var(--display); font-size: 25px; font-weight: 500; letter-spacing: .005em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { color: var(--ink); border-bottom-color: var(--ink); }
.head-tools { display: flex; gap: 14px; align-items: center; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang a { text-decoration: none; padding: 3px 6px; border-radius: 4px; color: var(--muted); }
.lang a.on { color: var(--ink); background: var(--paper); }
.cart-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.cart-btn:hover { background: var(--paper); }
.cart-btn span { position: absolute; top: 2px; right: 0; background: var(--vine); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; }

/* botones */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); color: var(--mist); }
.btn.solid { background: var(--vine); border-color: var(--vine); color: #fff; }
.btn.solid:hover { background: var(--vine-2); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--vine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* portada */
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; overflow: hidden; }
.hero-map { position: absolute; inset: 0; }
.hero-map svg { width: 100%; height: 100%; }
.hero-map .sea { fill: var(--sea); }
.hero-map .contour { fill: none; stroke: var(--ink); stroke-opacity: .18; stroke-width: .9; }
.hero-map .contour.major { stroke-opacity: .28; stroke-width: 1.1; }
.hero-map .river { fill: none; stroke: #A9BEC2; stroke-width: 5; stroke-linecap: round; }
.hero-map .parcel { stroke: var(--mist); stroke-width: .8; }
.hero-map .rows { stroke: rgba(255,255,255,.35); stroke-width: .6; }
.hero-map .winery { fill: var(--ink); }
.hero-map text { font-family: var(--display); font-style: italic; fill: var(--ink-2); font-size: 13px; paint-order: stroke; stroke: var(--mist); stroke-width: 4px; }
.hero-copy { position: relative; z-index: 2; align-self: end; padding: 0 0 clamp(36px, 7vh, 80px); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--mist) 88%, transparent) 0%, color-mix(in srgb, var(--mist) 70%, transparent) 38%, transparent 66%); }
.hero-copy .inner { max-width: 760px; pointer-events: auto; padding: 28px 30px 30px 0; }
.hero h1 { margin-bottom: 22px; font-size: clamp(46px, 7.2vw, 104px); max-width: 11ch; }
.hero .lede { margin: 0 0 30px; }
.hero .live { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.hero .live span { display: inline-flex; gap: 8px; align-items: center; }
.hero .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--vine); display: inline-block; box-shadow: 0 0 0 4px color-mix(in srgb, var(--vine) 18%, transparent); }
.season { position: absolute; z-index: 2; right: var(--gut); bottom: 30px; background: color-mix(in srgb, var(--mist) 85%, transparent); padding: 10px 14px; border-radius: 4px; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink-2); text-align: right; }
.season small { display: block; font-family: var(--text); font-style: normal; font-size: 13px; color: var(--muted); }
.draw path.contour { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.8s cubic-bezier(.3,.1,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-map .parcel { opacity: 0; animation: grow .7s ease forwards; }
@keyframes grow { to { opacity: 1; } }

/* secciones */
section.block { padding: clamp(80px, 12vh, 150px) 0; }
.kicker { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* da cepa á copa */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.story-art { position: sticky; top: 110px; height: min(72vh, 620px); background: var(--paper); border-radius: 4px; display: grid; place-items: center; overflow: hidden; }
.story-art svg { width: 78%; height: 78%; }
.story-art .scene { opacity: 0; transition: opacity .5s ease; position: absolute; inset: 0; display: grid; place-items: center; }
.story-art .scene.on { opacity: 1; }
.story-art .scene svg * { vector-effect: non-scaling-stroke; }
.story-steps { padding: 6vh 0 20vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); padding: 40px 0; }
.step .n { font-family: var(--display); font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.step h3 { margin-bottom: 18px; }
.step p { color: var(--ink-2); max-width: 46ch; margin: 0; }
.step .fact { margin-top: 26px; display: flex; gap: 32px; flex-wrap: wrap; }
.step .fact b { display: block; font-family: var(--display); font-size: 40px; font-weight: 500; line-height: 1; color: var(--ink); }
.step .fact span { font-size: 14px; color: var(--muted); }

/* botellas */
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px 24px; align-items: end; }
.bottle-card { text-decoration: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 6px 18px; border-radius: 4px; transition: background .2s; }
.bottle-card:hover { background: var(--paper); }
.bottle-card svg { height: 270px; width: auto; margin-bottom: 18px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.bottle-card:hover svg { transform: translateY(-6px); }
.bottle-card b { font-family: var(--display); font-size: 20px; font-weight: 500; line-height: 1.15; }
.bottle-card span { font-size: 14px; color: var(--muted); margin-top: 4px; }
.bottle-card .price { color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }

/* Leira Alta */
.feature { background: var(--ink); color: #E5EBE6; }
.feature h2 { color: #F4F6F2; }
.feature .lede { color: #AEBDB4; }
.feature .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; margin-top: 44px; }
.feature .facts b { display: block; font-family: var(--display); font-size: clamp(40px, 4vw, 56px); font-weight: 500; line-height: 1; color: var(--gold); }
.feature .facts span { font-size: 14px; color: #93A49A; }
.feature .map-frame { background: #1D2D25; border-radius: 4px; padding: 10px; }
.feature .map-frame .contour { stroke: #7F9A8B; stroke-opacity: .45; fill: none; stroke-width: .8; }
.feature .map-frame .parcel { fill: #3D5A4A; stroke: #1D2D25; }
.feature .map-frame .parcel.hi { fill: var(--gold); }

/* lista de experiencias */
.rows-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows-list li { display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.rows-list h3 { font-size: clamp(24px, 2.4vw, 32px); }
.rows-list p { margin: 0; color: var(--ink-2); font-size: 16px; }
.rows-list .meta { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* club */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.plan { padding: 30px 26px 34px 0; border-right: 1px solid var(--line); }
.plan + .plan { padding-left: 26px; }
.plan:last-child { border-right: 0; }
.plan b { font-family: var(--display); font-size: 30px; font-weight: 500; display: block; }
.plan .p { font-family: var(--display); font-size: 54px; line-height: 1; margin: 18px 0 6px; }
.plan .p small { font-family: var(--text); font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; color: var(--ink-2); font-size: 15.5px; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }

/* páginas internas */
.page-hero { padding-top: clamp(56px, 10vh, 110px); padding-bottom: clamp(36px, 6vh, 64px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); margin-bottom: 18px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumb a { text-decoration: none; }

.wine-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); padding-top: clamp(40px, 7vh, 80px); padding-bottom: clamp(40px, 7vh, 80px); }
.wine-detail .art { position: sticky; top: 100px; height: min(78vh, 680px); background: var(--paper); display: grid; place-items: center; border-radius: 4px; }
.wine-detail .art svg { height: 86%; width: auto; }
.wine-detail h1 { font-size: clamp(42px, 6vw, 80px); margin: 6px 0 12px; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 28px 0; font-size: 15.5px; border-top: 1px solid var(--line); padding-top: 22px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.tasting { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px 0; }
.tasting b { font-family: var(--display); font-size: 20px; font-weight: 500; display: block; margin-bottom: 6px; }
.tasting p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 26px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty input { width: 44px; border: 0; background: none; text-align: center; font-size: 16px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.price-big { font-family: var(--display); font-size: 44px; line-height: 1; }
.origin { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.origin ul { list-style: none; padding: 0; margin: 14px 0 0; columns: 2; column-gap: 32px; font-size: 15px; }
.origin li { padding: 6px 0; break-inside: avoid; border-bottom: 1px solid var(--line-2); }

/* catálogo */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.catalog .item { text-decoration: none; padding: 34px 26px 30px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.catalog .item:hover { background: var(--paper); }
.catalog .item svg { height: 270px; width: auto; margin: 0 auto 26px; }
.catalog .item b { font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1.1; }
.catalog .item p { font-size: 15px; color: var(--ink-2); margin: 10px 0 18px; flex: 1; }
.catalog .item .row { display: flex; justify-content: space-between; align-items: baseline; }
.catalog .tag { font-size: 13px; color: var(--gold-ink); }

/* formularios */
.form { display: grid; gap: 18px; }
.form .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
label.f { display: block; font-size: 14px; color: var(--ink-2); }
.in { display: block; width: 100%; margin-top: 6px; height: 50px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 0 14px; font-size: 16px; }
textarea.in { height: auto; min-height: 120px; padding: 12px 14px; }
.in:focus { outline: 2px solid color-mix(in srgb, var(--vine) 40%, transparent); border-color: var(--vine); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.check input { margin-top: 4px; }
.errors { background: #F6E3DD; color: #8E3524; padding: 14px 18px; border-radius: 6px; font-size: 15px; }
.okbox { background: #E1EEE5; color: #1F5A3B; padding: 18px 22px; border-radius: 6px; }
.flash { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: var(--mist); padding: 13px 20px; border-radius: 999px; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }

/* carrito */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table td, .cart-table th { padding: 18px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15.5px; vertical-align: middle; }
.cart-table th { font-weight: 500; color: var(--muted); font-size: 14px; }
.cart-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.summary { background: var(--paper); border-radius: 6px; padding: 26px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 0 0 20px; font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; text-align: right; }
.summary .tot { font-family: var(--display); font-size: 30px; }

/* calendario de reservas */
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.days label { cursor: pointer; }
.days input { position: absolute; opacity: 0; }
.days span { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 10px 8px; text-align: center; font-size: 14px; background: var(--paper); }
.days span b { display: block; font-family: var(--display); font-size: 24px; font-weight: 500; }
.days span small { color: var(--muted); font-size: 12px; }
.days input:checked + span { background: var(--vine); color: #fff; border-color: var(--vine); }
.days input:checked + span small { color: #CFE0D6; }
.days input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.days input:focus-visible + span { outline: 2px solid var(--vine); outline-offset: 2px; }

/* trazabilidad pública */
.trace-line { list-style: none; padding: 0; margin: 30px 0 0; border-left: 1px solid var(--ink); }
.trace-line li { position: relative; padding: 0 0 34px 30px; }
.trace-line li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--mist); border: 1px solid var(--ink); }
.trace-line li.gold::before { background: var(--gold); border-color: var(--gold); }
.trace-line .when { font-size: 14px; color: var(--muted); }
.trace-line h3 { font-size: 28px; margin: 4px 0 8px; }

/* viñedo */
.vmap { background: var(--paper); border-radius: 4px; padding: 10px; }
.vmap .sea { fill: var(--sea); } .vmap .land { fill: var(--paper); }
.vmap .contour { fill: none; stroke: var(--ink); stroke-opacity: .14; stroke-width: .7; }
.vmap .river { fill: none; stroke: #A9BEC2; stroke-width: 5; stroke-linecap: round; }
.vmap .parcel { stroke: var(--paper); stroke-width: 1; cursor: pointer; }
.vmap .parcel:hover, .vmap .parcel.sel { stroke: var(--ink); stroke-width: 1.8; }
.vmap .winery { fill: var(--ink); }
.vmap text { font-family: var(--display); font-style: italic; fill: var(--ink-2); font-size: 12px; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.legend { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.panel { background: var(--paper); border-radius: 4px; padding: 26px; }
.panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; font-size: 15px; }
.panel dt { color: var(--muted); } .panel dd { margin: 0; }

/* pie */
.site-foot { background: var(--ink); color: #B7C4BC; padding: 80px 0 40px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-foot h4 { color: #F0F3EE; font-weight: 500; font-size: 15px; margin: 0 0 14px; }
.site-foot a { text-decoration: none; display: block; padding: 4px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .big { font-family: var(--display); font-size: 40px; color: #F0F3EE; line-height: 1.05; }
.site-foot .base { border-top: 1px solid #2A3A32; margin-top: 56px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: #8A9A91; }

/* control de edad */
.age { position: fixed; inset: 0; z-index: 100; background: var(--ink); color: #E8EEE9; display: none; place-items: center; text-align: center; padding: 30px; }
.age.on { display: grid; }
.age h2 { color: #F4F6F2; font-size: clamp(38px, 6vw, 64px); margin: 20px 0 14px; }
.age p { color: #A3B3AA; max-width: 42ch; margin: 0 auto 30px; }
.age .btn { border-color: #E8EEE9; color: #E8EEE9; }
.age .btn:hover { background: #E8EEE9; color: var(--ink); }
.age .btn.solid { background: var(--gold); border-color: var(--gold); color: var(--ink); }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--mist); flex-direction: column; padding: 16px var(--gut) 26px; gap: 6px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 20px; font-family: var(--display); }
  .menu-btn { display: inline-grid; place-items: center; }
  .split, .story, .wine-detail { grid-template-columns: 1fr; }
  .story-art { position: relative; top: 0; height: 320px; display: none; }
  .step { min-height: 0; }
  .wine-detail .art { position: relative; top: 0; height: 440px; }
  .plans { grid-template-columns: 1fr; }
  .plan, .plan + .plan { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rows-list li { grid-template-columns: 1fr; gap: 10px; }
  .tasting { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .origin ul { columns: 1; }
  .hero-copy .inner { background: color-mix(in srgb, var(--mist) 88%, transparent); padding: 22px 18px; margin: 0 -18px; }
  .season { display: none; }
  .feature .facts { grid-template-columns: 1fr 1fr; }
  .head-tools .lang { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw path.contour { stroke-dashoffset: 0; }
  .hero-map .parcel { opacity: 1; }
}
