/* =========================================================
   Tinta Tinto — hoja de estilos
   Paleta: fondo blanco continuo, acento verde fresco,
   tinto reservado para marca y llamadas a la acción.
   Cada vino usa el color de su propia etiqueta pintada a mano.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --white: #ffffff;
  --offwhite: #fafaf6;      /* alternancia muy sutil, casi blanco */
  --ink: #221f1b;
  --ink-soft: #58544c;
  --ink-faint: #8b8579;
  --line: #e9e6dc;
  --verde: #3f7a52;         /* acento primaveral principal */
  --verde-oscuro: #2c5a3b;
  --tinto: #6e1423;         /* marca / CTA */
  --tinto-oscuro: #431019;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--verde-oscuro); text-decoration: none; }
a:hover { color: var(--tinto); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

#header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 243, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #d7d2c2;
  box-shadow: 0 1px 0 rgba(63, 122, 82, 0.06);
}

#header .wrap {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header .logo img { height: 150px; width: auto; }

#header nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}

#header nav a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}

#header nav a:hover { color: var(--verde); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--verde);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
  color: var(--ink);
}

.hero p.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 32px;
}

.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
}

.btn-primary {
  background: var(--tinto);
  color: var(--white);
}
.btn-primary:hover { background: var(--tinto-oscuro); color: var(--white); }

.btn-line {
  color: var(--ink);
  border-bottom: 1px solid var(--verde);
  padding: 0 0 2px;
  border-radius: 0;
}
.btn-line:hover { color: var(--verde); border-color: var(--verde); }

.hero-image { position: relative; }

.hero-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: 92%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(63,122,82,0.16) 0%, rgba(63,122,82,0.08) 45%, rgba(63,122,82,0) 72%);
  filter: blur(6px);
  z-index: 0;
}

.hero-image img { position: relative; z-index: 1; }

/* ---------- Quienes somos (teaser en home) ---------- */

.somos-teaser {
  padding: 64px 0;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--verde) 0%, var(--verde) 8%, var(--line) 8%, var(--line) 100%) 1;
  border-bottom: 1px solid var(--line);
}

.somos-teaser .wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}

.somos-teaser blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink);
}

.somos-teaser .btn-line { margin-top: 20px; display: inline-block; }

/* ---------- Franja fotográfica: familia / cosecha ---------- */

.banda-familia {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.banda-familia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.banda-familia .overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(0deg, rgba(34,31,27,0.72) 0%, rgba(34,31,27,0.05) 55%);
  display: flex;
  align-items: flex-end;
}

.banda-familia .overlay .wrap {
  padding-bottom: 36px;
}

.banda-familia p {
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  max-width: 560px;
}

/* ---------- Sección de vinos ---------- */

.vinos { padding: 84px 0 20px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  margin: 0;
}

.section-head .eyebrow { margin: 0; }

.wine {
  display: grid;
  grid-template-columns: 170px 1fr 200px;
  gap: 36px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.wine:last-child { border-bottom: 1px solid var(--line); }

.wine-bottle { display: flex; justify-content: center; align-items: flex-start; }
.wine-bottle img { max-width: 150px; }

.wine-context {
  height: 190px;
  border-radius: 2px;
  overflow: hidden;
}
.wine-context img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wine-body { display: flex; gap: 36px; }

.wine-tab {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.wine-content { flex-grow: 1; }

.wine-label {
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 4px;
}

.wine-content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 27px;
  margin: 0 0 16px;
  color: var(--ink);
}

.wine-specs {
  display: grid;
  grid-template-columns: 108px 1fr;
  row-gap: 9px;
  column-gap: 16px;
  font-size: 14.5px;
  font-family: var(--mono);
  color: var(--ink-faint);
  max-width: 620px;
}

.wine-specs div:nth-child(even) { color: var(--ink); font-family: var(--sans); }

.wine-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Mapa ---------- */

.mapa { padding: 64px 0; }
.mapa iframe { width: 100%; height: 340px; border: 0; border-radius: 2px; }

/* ---------- Footer ---------- */

#footer {
  background: var(--ink);
  color: #ded7c8;
  padding: 68px 0 40px;
  margin-top: 40px;
}

#footer .top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 40px;
}

#footer .logo img {
  height: 150px;
  filter: invert(1) brightness(1.7);
}

#footer h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: #a49b86;
  margin: 0 0 12px;
}

#footer p, #footer div.line { margin: 0 0 8px; font-size: 15px; }
#footer a { color: #ded7c8; border-bottom: 1px solid var(--tinto); }
#footer a:hover { color: var(--white); }

#footer .bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid #3a352e;
  font-size: 13px;
  color: #7d7566;
}

#footer .bottom a { color: #7d7566; border-bottom: 1px solid #4a453c; }

/* ---------- Página "Quiénes somos" ---------- */

.somos-hero { padding: 64px 0 40px; }

.somos-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.15;
  max-width: 780px;
  margin: 0;
}

.somos-body {
  padding: 20px 0 72px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
}

.somos-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.somos-body figure { margin: 0; }
.somos-body figure img { border-radius: 2px; }
.somos-body figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 10px;
}

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.5;
  margin: 34px 0;
  padding-left: 22px;
  border-left: 2px solid var(--verde);
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .banda-vinedo .grid { grid-template-columns: 1fr; }
  .banda-familia { height: 300px; }
  #header .logo img { height: 74px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .hero h1 { font-size: 40px; }
  .somos-teaser .wrap { grid-template-columns: 1fr; }
  .somos-body { grid-template-columns: 1fr; }
  .wine { grid-template-columns: 1fr; }
  .wine-bottle { justify-content: flex-start; }
  .wine-context { height: 220px; }
  #footer .top { grid-template-columns: 1fr; gap: 32px; }
  #header nav ul { gap: 20px; }
  .wine-specs { grid-template-columns: 96px 1fr; }
}

@media (max-width: 600px) {
  #header nav ul { display: none; }
  #header .wrap { justify-content: center; height: 150px; }
  #header .logo img { height: 118px; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 28px; }
}
