/* Manuel Santolaya · estilos */

/* Fuentes alojadas en local (Google Fonts, licencia SIL OFL; subconjunto latino) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/cormorant-garamond.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/cormorant-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('fonts/jost.woff2') format('woff2'); }

:root {
  --paper: #F3EEE6;
  --paper-2: #FBF8F3;
  --ink: #1B1714;
  --night: #161311;
  --text-soft: #4A423B;
  --text-muted: #6B6158;
  --line: #D6CBBB;
  --field-line: #938676;    /* contraste ≥ 3:1 con el fondo (WCAG 1.4.11) */
  --on-dark: #F3EEE6;
  --on-dark-soft: #D8CFC4;
  --on-dark-muted: #A89C90;
  --accent: #6E1F2B;        /* granate */
  --accent-dark: #551722;
  --accent-light: #C9A9A0;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Helvetica, sans-serif;
  --gutter: clamp(20px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.placeholder { background: rgba(110, 31, 43, 0.08); outline: 1px dashed rgba(110, 31, 43, 0.35); }

.eyebrow { font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.eyebrow--light { color: #E9DFD0; }
.eyebrow--muted { color: var(--accent-light); }
.logotype { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.32em; white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px; border: 0; font: inherit; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn--accent { background: var(--accent); color: var(--on-dark); }
.btn--accent:hover { background: var(--accent-dark); color: var(--on-dark); }
.btn--dark { background: var(--ink); color: var(--on-dark); padding: 0 40px; }
.btn--dark:hover { background: var(--accent); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(243, 238, 230, 0.5); }
.btn--ghost:hover { border-color: var(--on-dark); color: var(--on-dark); }
.btn--underline { padding: 0 8px; color: var(--on-dark); border-bottom: 1px solid rgba(243, 238, 230, 0.6); }
.btn--underline:hover { color: var(--on-dark); border-color: var(--on-dark); }
.btn--link { min-height: 44px; padding: 0 8px; background: transparent; color: var(--on-dark); border-bottom: 1px solid rgba(243, 238, 230, 0.5); }
.actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
/* Foco: granate sobre fondos claros, rosa viejo sobre fondos oscuros */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .page-header :focus-visible, .vinos :focus-visible, .footer :focus-visible, .age-gate :focus-visible { outline-color: var(--accent-light); }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 200; padding: 12px 20px; background: var(--night); color: var(--on-dark); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; transform: translateY(-200%); }
.skip-link:focus { transform: none; color: var(--on-dark); }
main:focus { outline: none; }

/* Aviso de edad */
.age-gate { position: fixed; inset: 0; z-index: 100; display: flex; overflow-y: auto; overscroll-behavior: contain; padding: 20px; background: rgba(22, 19, 17, 0.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--on-dark); }
.age-gate[hidden] { display: none; }
.age-gate__panel { width: min(620px, 100%); margin: auto; padding: clamp(40px, 7vw, 72px) clamp(24px, 6vw, 64px); border: 1px solid rgba(243, 238, 230, 0.25); display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.age-gate__panel > div { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.age-gate__panel > div[hidden] { display: none; }
.age-gate h2 { font-size: clamp(36px, 6vw, 52px); line-height: 1.05; }
.age-gate p { max-width: 440px; font-size: 16px; line-height: 1.6; color: var(--on-dark-soft); }
.age-gate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.age-gate__small { font-size: 12px; letter-spacing: 0.08em; color: var(--on-dark-muted) !important; }
.rule { width: 48px; height: 1px; background: var(--accent-light); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: var(--night); color: var(--on-dark); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero__shade { position: absolute; inset: 0; background: rgba(22, 19, 17, 0.48); }
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px var(--gutter); border-bottom: 1px solid rgba(243, 238, 230, 0.22); }
.nav .logotype { color: var(--on-dark); }
.nav__links { display: flex; gap: 48px; list-style: none; margin: 0; padding: 0; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; }
.nav__links a { display: inline-block; padding: 12px 0; white-space: nowrap; }
.nav__links a:hover { color: var(--accent-light); }
.nav__toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 0; color: var(--on-dark); cursor: pointer; }
.hero__content { position: relative; z-index: 1; margin-top: auto; padding: 0 var(--gutter) clamp(64px, 12vh, 140px); max-width: 1060px; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(48px, 7.5vw, 104px); line-height: 0.98; color: var(--on-dark); }

/* Bodega */
.bodega { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; padding-block: clamp(80px, 10vw, 140px); }
.bodega__text { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 28px; padding-top: 40px; }
.bodega h2, .vinos h2, .vinos h1, .contacto h2, .intro h1, .intro h2, .cta h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; }
.bodega__text p { font-size: 18px; line-height: 1.7; color: var(--text-soft); }
.facts { margin: 24px 0 0; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts dt, .specs dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.facts dd, .specs dd { margin: 0; font-family: var(--serif); font-size: 22px; }
.bodega__images { grid-column: 7 / span 6; position: relative; min-height: 820px; }
.img-main { position: absolute; top: 0; right: 0; width: 74%; height: 80%; object-fit: cover; }
.img-inset { position: absolute; bottom: 0; left: 0; width: 50%; height: 55%; object-fit: cover; border: 12px solid var(--paper); }

/* Banda */
.band { position: relative; height: clamp(380px, 42vw, 600px); background: var(--night); overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: grayscale(1) contrast(1.05); }
.band__shade { position: absolute; inset: 0; background: rgba(22, 19, 17, 0.35); }
.band blockquote { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 72px); margin: 0; max-width: 620px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; color: var(--on-dark); }

/* Vinos */
.vinos { background: var(--night); color: var(--on-dark); padding-block: clamp(80px, 10vw, 140px); }
.vinos > .container > h2, .vinos > .container > h1 { margin-top: 20px; }
.vinos__lead { max-width: 620px; margin-top: 28px; font-size: 18px; line-height: 1.7; color: var(--on-dark-soft); }
.vinos--page { padding-top: clamp(64px, 8vw, 112px); }

/* Home: los vinos como adelanto */
.wine-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: clamp(48px, 5vw, 72px) clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 96px); }
.wine-card { display: flex; flex-direction: column; gap: 32px; }
.wine-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.wine-card__media picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.wine-card:hover .wine-card__media picture img { transform: scale(1.03); }
.wine-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.wine-card h3 { font-weight: 500; font-size: clamp(36px, 3.6vw, 52px); line-height: 0.95; letter-spacing: 0.01em; }
.wine-card__body > p:not(.eyebrow) { max-width: 460px; font-size: 17px; line-height: 1.7; color: var(--on-dark-soft); }

/* Página de vinos: ficha técnica */
.ficha { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(243, 238, 230, 0.15); }
.ficha__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.ficha__head h2 { margin-top: 20px; }
.ficha__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 6vw, 96px) clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.ficha__block h3 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; margin-bottom: 24px; }
.ficha__block p, .ficha__block dd, .ficha__block li { font-size: 17px; line-height: 1.7; color: var(--on-dark-soft); }
.ficha__block p + p { margin-top: 16px; }
.ficha__block dl { margin: 0; }
.ficha__block dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-muted); }
.ficha__block dd { margin: 8px 0 0; }
.ficha__block dd + dt { margin-top: 24px; }
.ficha__block ol { margin: 0; padding-left: 1.4em; }
.ficha__block li { padding-left: 6px; }
.ficha__block li + li { margin-top: 10px; }
.ficha__block li::marker { font-family: var(--serif); color: var(--accent-light); }
.ficha__block .ficha__note { margin-bottom: 28px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.45; color: var(--on-dark); }

/* Página de la bodega: datos del viñedo */
.datos { grid-column: 8 / span 5; margin: 0; }
.datos div { padding: 20px 0; border-top: 1px solid var(--line); }
.datos div:last-child { border-bottom: 1px solid var(--line); }
.datos dt { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.datos dd { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.3; }

/* Página de vinos: el próximo vino, con el mismo formato que la ficha del tinto */
.wine--next { margin-top: clamp(80px, 10vw, 140px); padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(243, 238, 230, 0.15); }
.specs dd em { color: var(--on-dark-muted); }

/* Enlace "ver más" */
.more { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--accent); }
.more:hover { color: var(--accent); }
.more--light { color: var(--on-dark); border-color: var(--accent-light); }
.more--light:hover { color: var(--accent-light); }

/* Página de la bodega */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: center; padding-block: clamp(80px, 10vw, 140px); }
.intro__text { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.intro__text > p:not(.eyebrow) { font-size: 18px; line-height: 1.7; color: var(--text-soft); }
.intro__media { grid-column: 8 / span 5; margin: 0; }
.intro__media img { width: 100%; height: clamp(480px, 50vw, 720px); object-fit: cover; filter: grayscale(1); }
.intro__media--bottom img { object-position: center bottom; }
.intro__media--face img { object-position: 68% center; }
.intro__media--horizon img { object-position: center 30%; }
.intro__media figcaption { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.intro--reverse .intro__text { grid-column: 7 / span 6; grid-row: 1; }
.intro--reverse .intro__media { grid-column: 1 / span 5; grid-row: 1; }
.intro .facts { width: 100%; }
.section-dark { background: var(--night); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--accent-light); }
.section-dark .intro__text > p:not(.eyebrow) { color: var(--on-dark-soft); }
.section-dark .facts { border-top-color: rgba(243, 238, 230, 0.2); }
.section-dark .facts dt, .section-dark figcaption { color: var(--on-dark-muted); }
.section-dark :focus-visible { outline-color: var(--accent-light); }
.band__caption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 72px); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-block: clamp(80px, 10vw, 140px); }
.cta .actions { justify-content: center; }
.nav__links a[aria-current="page"] { color: var(--accent-light); }
.wine { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.wine__img { grid-column: 1 / span 6; width: 100%; height: clamp(480px, 53vw, 760px); object-fit: cover; }
.wine__info { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 32px; }
.wine h3, .wine h2 { font-weight: 500; font-size: clamp(48px, 5vw, 72px); line-height: 0.95; letter-spacing: 0.01em; }
.wine__info > p { font-size: 18px; line-height: 1.7; color: var(--on-dark-soft); }
.specs { margin: 0; padding-top: 32px; border-top: 1px solid rgba(243, 238, 230, 0.2); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.specs dt { color: var(--on-dark-muted); }
.price { font-family: var(--serif); font-size: 26px; }
.strip { display: grid; grid-template-columns: 1fr 1fr 2fr; grid-auto-rows: 300px; gap: 24px; margin-top: clamp(48px, 7vw, 96px); }
.strip img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

/* Contacto */
.contacto { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; padding-block: clamp(80px, 9vw, 120px); }
.contacto__info { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 24px; font-size: 17px; line-height: 1.6; color: var(--text-soft); }
.contacto__info address { font-style: normal; }
.contacto__links { display: flex; flex-direction: column; gap: 4px; }
.contacto__links a { color: var(--ink); }
.form { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: #5E554C; }
.field input, .field textarea { border: 1px solid var(--field-line); background: var(--paper-2); font: inherit; font-size: 16px; color: var(--ink); border-radius: 0; }
.field input { height: 52px; padding: 0 16px; }
.field textarea { padding: 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.form__footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); max-width: 420px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check a { text-decoration: underline; }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form__legal { font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.form__legal a { text-decoration: underline; }

/* Páginas secundarias (gracias y textos legales) */
.page-header { background: var(--night); color: var(--on-dark); }
.page-header .nav__back { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; padding: 12px 0; white-space: nowrap; }
.page-header .nav__back:hover { color: var(--accent-light); }
.legal { max-width: 860px; padding-block: clamp(64px, 8vw, 112px); }
.legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin-top: 20px; }
.legal h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; margin: 56px 0 16px; }
.legal p, .legal li, .legal td, .legal th { font-size: 17px; line-height: 1.7; color: var(--text-soft); }
.legal p + p, .legal p + ul, .legal ul + p, .legal table + p { margin-top: 16px; }
.legal ul { margin: 0; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal .updated { margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.legal .table-wrap { overflow-x: auto; margin-top: 16px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.legal th { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--text-muted); }
.thanks { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding-block: clamp(80px, 10vw, 140px); }
.thanks h1 { font-size: clamp(48px, 6vw, 80px); line-height: 1; }
.thanks p { max-width: 520px; font-size: 18px; line-height: 1.7; color: var(--text-soft); }

/* Footer */
.footer { background: var(--night); color: var(--on-dark-soft); padding-block: 56px; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .logotype { font-size: 20px; color: var(--on-dark); }
.footer__legal { display: flex; gap: 32px; font-size: 13px; letter-spacing: 0.12em; }
.footer__legal a { padding: 12px 0; }
.footer__legal a:hover, .footer__legal a[aria-current] { color: var(--on-dark); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(243, 238, 230, 0.15); font-size: 13px; color: var(--on-dark-muted); }

/* Tablet */
@media (max-width: 1024px) {
  .bodega__text, .bodega__images, .wine__img, .wine__info, .contacto__info, .form { grid-column: 1 / -1; }
  .bodega__text { padding-top: 0; }
  .bodega__images { min-height: 640px; }
  .wine__img { height: 620px; }
  .intro__text, .intro__media, .intro--reverse .intro__text, .intro--reverse .intro__media { grid-column: 1 / -1; grid-row: auto; }
  .intro__media img { height: 560px; }
  .datos { grid-column: 1 / -1; }
  .nav__toggle { display: inline-flex; }
  .nav__links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: rgba(22, 19, 17, 0.96); }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 0; width: 100%; }
}

/* Móvil */
@media (max-width: 720px) {
  .nav { padding-block: 20px; }
  .logotype { font-size: 17px; letter-spacing: 0.24em; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .bodega__images { min-height: 520px; }
  .img-main { width: 82%; height: 78%; }
  .img-inset { width: 55%; height: 50%; border-width: 8px; }
  .wine__img { height: 520px; }
  .specs { grid-template-columns: 1fr 1fr; gap: 20px; }
  .strip { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .strip img { aspect-ratio: 2 / 3; height: auto; }
  .strip .strip__wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .form__row { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
  .footer__bottom { flex-direction: column; }
  .nav__back-long { display: none; }
  .wine-cards { grid-template-columns: minmax(0, 440px); }
  .ficha__grid { grid-template-columns: 1fr; }
  .intro__media img { height: 440px; }
}

@media (max-width: 360px) {
  .logotype { font-size: 16px; letter-spacing: 0.2em; }
  .page-header .nav__back { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wine-card__media picture img { transition: none; }
}
