/* =========================================================
   Laposse — homepage styles
   Brand tokens: edit these to restyle the whole site
   ========================================================= */
:root {
  --red: #cc2229;
  --red-dark: #720b0e;
  --gold-1: #eee7bd;
  --gold-2: #c7a264;
  --gold-grad: linear-gradient(90deg, var(--gold-1) 14%, var(--gold-2) 100%);
  --ink: #111827;
  --gray-bg: #f5f5f5;
  --border: #e5e7eb;
  --container: 913px;
  --font: "Inter", "Inter var", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-feature-settings: "salt";
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn-gold, .btn-red, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 20px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.btn-gold { background: var(--gold-grad); color: #000; height: 30px; padding: 0 22px; font-size: 13px; }
.btn-gold.btn-lg { height: 40px; width: 213px; font-size: 14px; font-weight: 400; }
.btn-gold.btn-sm { height: 30px; min-width: 107px; font-size: 10px; }
.btn-red { background: var(--red); color: #fff; height: 40px; padding: 0 34px; font-size: 10px; }
.btn-outline { border: 2px solid #fff; color: #fff; height: 40px; width: calc(100% - 28px); font-size: 14px; font-weight: 800; }
.btn-gold:hover, .btn-red:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* ---------- Section titles ---------- */
.title-red { color: var(--red); font-size: 32px; font-weight: 800; line-height: 1.2; }
.lead { text-align: center; font-size: 14px; margin: 14px 0 38px; }
.lead.tight { margin-top: 4px; margin-bottom: 50px; }
.section-head { position: relative; display: flex; justify-content: center; align-items: center; }
.arrows { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 16px; }
.arrow img { width: 29px; height: 29px; }
.arrow:hover { opacity: .75; }

/* ---------- Header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: 99px; transition: background .2s; }
.site-header.menu-open, .site-header.solid { background: var(--red); }
.header-inner { height: 99px; display: flex; align-items: flex-start; padding: 16px 112px 0 127px; position: relative; }
.logo img { width: 270px; height: 67px; }
.main-nav { display: flex; align-items: center; gap: 50px; margin-left: 4px; height: 40px; }
.nav-link { color: #fff; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; height: 40px; }
.nav-link:hover { color: var(--gold-1); }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav-item.open .chev { transform: rotate(-135deg) translateY(-1px); }
.nav-item.open > .nav-link { color: var(--gold-1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; height: 40px; color: #fff; }
.cart { display: inline-flex; color: #fff; }
.lang { color: #fff; font-size: 13px; font-weight: 700; border-bottom: 2px solid #fff; padding: 0 12px 4px; }
.burger { display: none; }

/* Dropdowns */
.dropdown { display: none; position: absolute; left: 0; right: 0; top: 99px; background: var(--red); color: #fff; padding: 0 0 28px 0; }
.nav-item.open .dropdown { display: block; }
.dropdown.small ul { padding-left: calc(127px + 270px + 4px); }
.dropdown a { font-size: 13px; font-weight: 500; line-height: 20.5px; }
.dropdown a:hover { color: var(--gold-1); }
.dropdown .sep { border-top: 1px solid rgba(255,255,255,.7); margin-top: 6px; padding-top: 6px; width: 160px; }
.dropdown.mega { display: none; top: 70px; padding: 0 0 36px 228px; gap: 36px; }
.nav-item.open .dropdown.mega { display: flex; }
.mega-col { min-width: 140px; display: flex; flex-direction: column; }
.mega-col:first-child { min-width: 233px; }
.mega-col:nth-child(2) { min-width: 165px; }
.mega-col:nth-child(3) { min-width: 150px; }
.mega-title { color: var(--gold-1); font-weight: 700 !important; margin-top: 8px; }
.mega-title:first-child { margin-top: 0; }
.mega-all { border-top: 1px solid rgba(255,255,255,.7); margin-top: 10px; padding-top: 6px; width: 160px; }

/* ---------- Hero ---------- */
.hero { height: 603px; background-size: cover; background-position: center; display: flex; align-items: flex-start; color: #fff; }
.hero-text { padding: 192px 0 0 112px; }
.hero h1 { font-size: 40px; font-weight: 800; line-height: 1.16; }
.hero p { font-size: 18px; line-height: 1.3; margin: 14px 0 26px; }

/* ---------- Productos ---------- */
.productos { padding-top: 98px; padding-bottom: 81px; }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.track::-webkit-scrollbar { display: none; }
.prod-card {
  flex: 0 0 210px; height: 214px; scroll-snap-align: start;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 16px;
}
.prod-img { position: relative; width: 206px; height: 156px; }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.prod-img .hover { opacity: 0; }
.prod-card:hover .prod-img .hover { opacity: 1; }
.prod-card:hover .prod-img img:not(.hover) { opacity: 0; }

/* ---------- Historia ---------- */
.historia { display: flex; background: var(--red); color: #fff; min-height: 409px; }
.historia-img { flex: 0 0 635px; }
.historia-img img { width: 508px; height: 409px; object-fit: cover; border-radius: 0 60px 60px 0; }
.historia-text { padding: 94px 60px 40px 0; max-width: 600px; }
.historia-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.historia-text p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.historia-text .btn-gold { margin-top: 18px; height: 40px; padding: 0 22px; font-size: 13px; }

/* ---------- Regalos ---------- */
.regalos { padding-top: 88px; padding-bottom: 123px; max-width: calc(873px + 32px); }
.track.gifts { gap: 25px; justify-content: flex-start; padding: 0 0 0 0; }
.gift-card {
  flex: 0 0 272px; height: 365px; border-radius: 16px; scroll-snap-align: start;
  background-size: cover; background-position: center; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 18px;
}
.gift-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); }
.gift-card .btn-outline { position: relative; }
.gift-card:hover .btn-outline { background: #fff; color: var(--red); }

/* ---------- Recetas ---------- */
.recetas { height: 365px; background-size: cover; background-position: center; color: #fff; display: flex; align-items: center; }
.recetas-text { max-width: 380px; }
.recetas h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.recetas p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
.recetas .btn-gold { margin-top: 18px; height: 40px; padding: 0 22px; font-size: 13px; }

/* ---------- Blog ---------- */
.blog { background: var(--gray-bg); padding: 80px 0 137px; }
.blog .lead { margin-bottom: 30px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, 210px); gap: 24px; margin-bottom: 46px; }
.blog-card img { width: 210px; height: 159px; object-fit: cover; border-radius: 6px; }
.blog-card h3 { font-size: 14px; font-weight: 700; margin: 14px 0 12px; }
.blog-card p { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
.blog-card .btn-gold { display: flex; width: 93px; min-width: 0; margin: 0 auto; }

/* ---------- Contacto ---------- */
.contacto { padding-top: 104px; text-align: center; }
.contact-form { width: 548px; max-width: calc(100% - 32px); margin: 0 auto; text-align: left; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; height: 53px; border: 1px solid #c4c4c4; border-radius: 4px; padding: 16px 14px 6px;
  font: inherit; font-size: 14px; color: var(--ink); background: #fff; outline: none; resize: vertical;
}
.field textarea { height: 112px; padding-top: 24px; }
.field input:focus, .field textarea:focus { border-color: var(--red); border-width: 2px; }
.field span { position: absolute; left: 14px; top: 16px; font-size: 14px; color: #6b7280; pointer-events: none; transition: all .15s; background: #fff; padding: 0 2px; }
.field.area span { top: 18px; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { top: -9px; font-size: 11px; color: var(--red); }
.form-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 26px; }
.req { font-size: 14px; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 15px; height: 15px; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; font-size: 13px; font-weight: 500; }
.btn-send { width: 220px; font-size: 14px; font-weight: 500; }
.form-ok { text-align: center; color: var(--red); font-weight: 600; margin-top: 16px; }
.village { width: 635px; max-width: 100%; height: 105px; object-fit: contain; margin: 46px auto 0; display: block; transform: translateY(1px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--red); color: #fff; }
.footer-main { height: 167px; display: flex; align-items: flex-start; padding: 36px 112px 0 151px; gap: 0; }
.f-brand { width: 370px; margin-right: auto; }
.f-brand img { width: 140px; height: 35px; margin-bottom: 14px; }
.f-brand p { font-size: 12px; line-height: 1.5; }
.f-col { margin-left: 96px; text-align: center; }
.f-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; color: var(--gold-1); }
.f-col a { font-size: 12px; }
.pay { display: flex; gap: 6px; }
.pay img { width: 40px; height: 22px; }
.social { display: flex; gap: 33px; justify-content: center; }
.social img { width: 20px; height: 20px; }
.footer-bottom { background: var(--red-dark); height: 42px; line-height: 42px; text-align: center; font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { padding: 16px 24px 0; }
  .main-nav { gap: 28px; }
  .logo img { width: 200px; height: 50px; }
  .dropdown.mega { padding-left: 24px; }
  .dropdown.small ul { padding-left: 24px; }
  .hero-text { padding-left: 40px; }
  .historia-img { flex-basis: 45%; }
  .historia-img img { width: 90%; }
  .historia-text { padding-right: 40px; }
  .footer-main { padding: 36px 24px 0; }
  .f-col { margin-left: 40px; }
}
@media (max-width: 820px) {
  .main-nav, .header-actions .nav-link { display: none; }
  .header-inner { align-items: center; padding: 0 16px; }
  .site-header, .header-inner { height: 72px; }
  .logo img { width: 150px; height: 37px; }
  .header-actions { gap: 14px; }
  .burger { display: flex; flex-direction: column; gap: 5px; margin-left: 14px; }
  .burger span { width: 24px; height: 2px; background: #fff; }
  .site-header.nav-mobile { background: var(--red); }
  .site-header.nav-mobile .main-nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0; height: auto; background: var(--red); padding: 8px 16px 20px; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.nav-mobile .nav-item { width: 100%; }
  .site-header.nav-mobile .dropdown, .site-header.nav-mobile .dropdown.mega { position: static; padding: 0 0 12px 12px; flex-direction: column; gap: 6px; }
  .site-header.nav-mobile .dropdown.small ul { padding-left: 0; }
  .hero { height: 520px; }
  .hero-text { padding: 150px 16px 0; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .arrows { display: none; }
  .productos, .regalos { padding-top: 64px; padding-bottom: 56px; }
  .historia { flex-direction: column; }
  .historia-img { flex: none; }
  .historia-img img { width: 92%; height: 260px; }
  .historia-text { padding: 32px 16px 40px; }
  .recetas { height: auto; padding: 56px 0; }
  .recetas .container { background: linear-gradient(90deg, rgba(60,30,15,.6), rgba(60,30,15,0)); }
  .row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 18px; }
  .btn-send { width: 100%; }
  .footer-main { height: auto; flex-direction: column; gap: 22px; padding: 32px 16px; }
  .f-col { margin-left: 0; text-align: left; }
  .social { justify-content: flex-start; }
  .footer-bottom { height: auto; padding: 12px 16px; text-align: center; }
}
