/* ===== Variables ===== */
:root {
  --wine: #6e1f2b;
  --wine-dark: #4a1219;
  --gold: #b8893b;
  --gold-light: #e2c68f;
  --olive: #4f5130;
  --cream: #f8f3ea;
  --cream-dark: #efe6d6;
  --ink: #4a1219;
  --muted: #4a1219;
  --white: #ffffff;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1180px;
  --radius: 4px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-light); }

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  color: var(--wine-dark);
}
.section-title em { display: block; font-style: italic; font-weight: 500; color: var(--gold); }
.section-title--light { color: var(--white); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--primary { background: var(--wine); color: var(--white); }
.btn--primary:hover { background: var(--wine-dark); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); color: var(--wine-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--wine-dark); }
.btn--light { background: var(--white); color: var(--wine-dark); }
.btn--light:hover { background: var(--gold-light); }

/* ===== Cabecera ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 243, 234, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--wine);
}
.logo__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
  padding-left: 2px;
}
.logo--small .logo__name { font-size: 20px; color: var(--white); }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

/* Selector de idioma ES | EN */
.lang-switch { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.lang-switch a { padding: 4px 6px; color: var(--ink); opacity: .55; transition: opacity .2s; }
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; color: var(--wine); box-shadow: inset 0 -1.5px 0 var(--gold); }
.nav .lang-switch a::after { content: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--wine); }

/* ===== Portada ===== */
.hero {
  color: var(--white);
  background: linear-gradient(115deg, #2a0a0f 0%, var(--wine-dark) 60%, #3d1a14 100%);
}
.hero__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 600px;
  object-fit: cover;
  object-position: center 60%;
}
.hero__content { padding-top: 64px; padding-bottom: 80px; }
.hero__title { font-size: clamp(42px, 7vw, 84px); margin-bottom: 28px; }
.hero__title span { display: block; }
.hero__title .hero__brand,
.hero__title .hero__brand-tag {
  display: inline;
  font-size: .7em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
}
.hero__brand,
.hero__brand-tag { letter-spacing: .08em; }
.hero__brand-tag { margin-left: .25em; }
.hero__title em,
.hero__motto { font-family: Candara, Calibri, "Segoe UI", sans-serif; }
.hero__title em {
  display: block;
  font-size: .55em;
  font-weight: 500;
  color: var(--gold-light);
  margin-top: 14px;
}
.hero__lead {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,.88);
  margin-bottom: 40px;
}
.hero__center { text-align: center; }
.hero__center .hero__lead { margin-left: auto; margin-right: auto; }
.hero__center .hero__actions { justify-content: center; }
.hero__motto {
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--gold-light);
  margin: -16px 0 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== Propuesta ===== */
.intro { padding: 120px 0; }
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro__text {
  font-size: 19px;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 32px;
}
.intro__text--wine { color: var(--wine-dark); }

/* ===== Productos ===== */
.products { padding: 110px 0 120px; background: var(--white); }
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.product {
  padding: 0 0 36px;
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product__image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 28px;
}
.product__image--full { aspect-ratio: 9 / 8; }
.product h3, .product p { padding: 0 32px; }
.product:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(74, 18, 25, .1); }
.product h3 { font-size: 22px; color: var(--wine-dark); margin-bottom: 12px; }
.product p { color: var(--muted); font-size: 16px; }
.products__cta { text-align: center; margin-top: 56px; }

/* ===== Servicios ===== */
.services { padding: 110px 0 120px; background: var(--cream); }
.services__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
.services__lead { color: var(--wine-dark); font-size: 18px; }
#servicios .services__lead { border-left: 2px solid var(--gold); padding-left: 32px; }
.services__head--stacked { grid-template-columns: 1fr; gap: 24px; }
.services__head--stacked .services__lead { max-width: 720px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--cream-dark);
  border-left: 1px solid var(--cream-dark);
}
.service {
  padding: 40px 34px 44px;
  border-right: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  transition: background .3s;
}
.service:hover { background: var(--white); }
.service__icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--cream-dark);
  fill: none;
  stroke: var(--wine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { font-size: 22px; color: var(--wine-dark); margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; }

/* ===== Llamada a la acción ===== */
.cta {
  padding: 110px 0;
  background: linear-gradient(120deg, var(--wine-dark), var(--wine));
  color: rgba(255,255,255,.85);
  text-align: center;
}
.cta__inner { max-width: 760px; }
.cta .section-title { margin-bottom: 18px; }
.cta p:not(.eyebrow) { margin-bottom: 36px; font-size: 18px; }

/* ===== Formularios de catálogo y contacto ===== */
[id] { scroll-margin-top: 90px; } /* que la cabecera fija no tape el destino de los enlaces */
.forms {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
  align-items: start;
  max-width: 1040px;
  margin-top: 56px;
  text-align: left;
}
.form-card {
  padding: 40px 36px;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
}
.forms--single { grid-template-columns: 1fr; max-width: 720px; }
.forms.forms--narrow { grid-template-columns: 1fr; max-width: 520px; }
.form-card h2,
.form-card h3 { font-size: 26px; color: var(--wine-dark); margin-bottom: 10px; }
.form-card h2 { margin-bottom: 24px; }
/* Página de catálogo: la sección ocupa la pantalla para que el pie quede abajo */
.cta--page { min-height: calc(100vh - 78px); }
.cta .form-card__intro { font-size: 16px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 137, 59, .2);
}
.field [aria-invalid="true"] { border-color: #a3261b; }
.hp { position: absolute; left: -9999px; }
.form__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 4px; }
.form__actions .btn { cursor: pointer; font-family: inherit; }
.form__actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.cta .form__status { margin: 0; font-size: 15px; }
.form__status.ok { color: #2f6b3a; }
.form__status.err { color: #a3261b; }

/* ===== Pie ===== */
.footer { background: #1f0a0e; color: rgba(255,255,255,.6); font-size: 14px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}

/* ===== Botón de WhatsApp ===== */
.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .25s, box-shadow .25s;
}
.whatsapp:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.whatsapp svg { width: 32px; height: 32px; }
.whatsapp span { display: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__head { grid-template-columns: 1fr; gap: 24px; }
  .services__grid, .products__grid { grid-template-columns: repeat(2, 1fr); }
  .forms { grid-template-columns: 1fr; max-width: 640px; }
}

@media (max-width: 600px) {
  .services__grid, .products__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 22px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    gap: 22px;
    padding: 28px 16px 32px;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    display: none;
  }
  .nav--open { display: flex; }
  .hero__image { aspect-ratio: 3 / 2; }
  .hero__content { padding-top: 44px; padding-bottom: 60px; }
  .hero__title .hero__brand,
  .hero__title .hero__brand-tag { font-size: 6.4vw; }
  .intro, .products, .services, .cta { padding: 80px 0; }
  .intro__text { padding-left: 20px; font-size: 17px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .whatsapp { right: 16px; bottom: 16px; }
}
