@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600;1,700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --wine: #651d32;
  --wine-deep: #3a0a18;
  --wine-light: #8f3d53;
  --cream: #fffaf4;
  --beige: #f5eadf;
  --sand: #ddc4ae;
  --gold: #c79c67;
  --ink: #2c1b1e;
  --muted: #725f63;
  --line: rgba(101, 29, 50, .15);
  --max-width: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", Arial, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.page-width { width: min(var(--max-width), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; padding: 10px max(20px, calc((100vw - var(--max-width)) / 2));
  border-bottom: 1px solid rgba(101,29,50,.09);
  background: rgba(255,250,244,.91); backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wine-deep); }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 50%; box-shadow: 0 4px 12px rgba(58,10,24,.16); }
.brand strong { display: block; font: 700 1.37rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .02em; }
.brand small { display: block; margin-top: 3px; color: var(--wine-light); font-size: .57rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); }
.main-nav a { color: var(--wine-deep); font-size: .81rem; font-weight: 700; letter-spacing: .02em; }
.main-nav a:hover { color: var(--gold); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--wine); }

.hero { overflow: hidden; position: relative; background: radial-gradient(circle at 82% 18%, rgba(230,191,144,.76), transparent 22%), linear-gradient(135deg, #f8eee5 0%, #e9d3be 100%); }
.hero::after { position: absolute; right: -220px; bottom: -360px; width: 740px; height: 740px; border: 1px solid rgba(101,29,50,.14); border-radius: 50%; content: ""; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 8vw, 118px); align-items: center; min-height: 640px; padding: 60px 0; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--wine-light); font-size: .68rem; font-weight: 700; letter-spacing: .18em; }
h1, h2, h3 { margin-top: 0; font-family: "Cormorant Garamond", Georgia, serif; color: var(--wine-deep); line-height: 1.02; }
h1 { max-width: 680px; margin-bottom: 22px; font-size: clamp(3.1rem, 6vw, 5.85rem); }
h1 em { color: var(--wine); font-weight: 600; }
h2 { margin-bottom: 16px; font-size: clamp(2.45rem, 4vw, 4rem); }
h3 { margin-bottom: 7px; font-size: 1.75rem; }
.hero-text { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 48px; padding: 12px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 700; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.primary { color: #fff; background: var(--wine); box-shadow: 0 10px 24px rgba(101,29,50,.23); }
.primary:hover { background: var(--wine-deep); }
.ghost { border-color: var(--wine); color: var(--wine); }
.ghost:hover { color: #fff; background: var(--wine); }
.secondary { color: var(--wine); background: #fff7ee; border-color: var(--wine); }
.secondary:hover { color: #fff; background: var(--wine); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 31px; color: var(--muted); font-size: .75rem; }
.hero-stats b { margin-right: 4px; color: var(--wine); font-size: 1.25rem; font-family: "Cormorant Garamond", Georgia, serif; }

.hero-feature { position: relative; align-self: stretch; min-height: 500px; overflow: hidden; border-radius: 210px 210px 26px 26px; background: #5a1127; box-shadow: 0 24px 55px rgba(74,22,35,.25); }
.hero-feature::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(51,5,18,.83) 100%); content: ""; }
.hero-feature img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: center; }
.feature-label { position: absolute; z-index: 2; top: 24px; left: 50%; transform: translateX(-50%); color: #f7dbae; font-size: .63rem; font-weight: 700; letter-spacing: .2em; }
.feature-caption { position: absolute; z-index: 2; right: 30px; bottom: 27px; left: 30px; color: white; text-align: center; }
.feature-caption strong { display: block; font: 600 2.5rem/1 "Cormorant Garamond", Georgia, serif; }
.feature-caption span { color: #f9dbc1; font-size: .76rem; font-weight: 600; letter-spacing: .04em; }

.promise-bar { padding: 18px 0; background: var(--wine-deep); color: #fff5e9; }
.promise-bar .page-width { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.promise-bar span::first-letter { color: var(--gold); }

.intro { display: grid; grid-template-columns: 1fr .82fr; gap: 70px; align-items: end; padding: 94px 0; border-bottom: 1px solid var(--line); }
.intro h2 { max-width: 570px; margin: 0; }
.intro > p { margin: 0 0 5px; color: var(--muted); font-size: 1.05rem; }
.featured-section { padding: 90px 0; }
.section-heading, .catalog-top { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-heading h2, .catalog-top h2 { margin: 0; }
.inline-link { color: var(--wine); white-space: nowrap; font-size: .8rem; font-weight: 700; }
.inline-link span { padding-left: 4px; font-size: 1.1rem; }
.inline-link:hover { color: var(--gold); }
.featured-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-top: 35px; }
.highlight-card { overflow: hidden; border: 1px solid rgba(101,29,50,.08); border-radius: 18px; background: #fffdf9; box-shadow: 0 13px 25px rgba(75,31,36,.07); }
.highlight-card img { width: 100%; aspect-ratio: 1/1.12; object-fit: cover; }
.highlight-card div { padding: 18px 18px 20px; }
.highlight-card p { margin: 0 0 5px; color: var(--wine-light); font-size: .61rem; font-weight: 700; letter-spacing: .14em; }
.highlight-card h3 { margin: 0; font-size: 1.65rem; }
.highlight-card span { color: var(--muted); font-size: .8rem; }

.kalua-banner { padding: 78px 0; color: white; background: linear-gradient(118deg, #4a1022 0%, #6e263c 100%); }
.kalua-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 115px); align-items: center; }
.kalua-collage { display: grid; grid-template-columns: 1.05fr .95fr; grid-template-rows: 190px 190px; gap: 13px; }
.kalua-collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 30px rgba(0,0,0,.19); }
.kalua-collage img:first-child { grid-row: span 2; }
.kalua-copy h2 { color: #ffedd8; }
.kalua-copy p:not(.eyebrow) { max-width: 500px; color: #efd5d0; }
.kalua-copy .eyebrow { color: #f2c999; }
.kalua-copy .button { margin-top: 14px; }

.catalog-section { padding: 92px 0; background: #f3e7dc; }
.catalog-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.catalog-tab { border: 1px solid rgba(101,29,50,.25); padding: 10px 14px; border-radius: 999px; color: var(--wine); background: transparent; cursor: pointer; font-size: .75rem; font-weight: 700; transition: .18s ease; }
.catalog-tab span { display: inline-block; min-width: 19px; margin-left: 4px; padding: 0 5px; border-radius: 99px; color: var(--wine); background: rgba(101,29,50,.1); font-size: .65rem; line-height: 19px; }
.catalog-tab.active, .catalog-tab:hover { color: white; background: var(--wine); border-color: var(--wine); }
.catalog-tab.active span, .catalog-tab:hover span { color: var(--wine); background: #f5d5b6; }
.catalog-note { margin: 17px 0 28px; color: var(--muted); font-size: .9rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.catalog-card { overflow: hidden; border-radius: 17px; background: #fffaf5; box-shadow: 0 10px 24px rgba(65,24,29,.08); transition: transform .18s ease, box-shadow .18s ease; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 32px rgba(65,24,29,.13); }
.catalog-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #ead8c9; }
.catalog-content { padding: 17px 17px 18px; }
.catalog-content h3 { margin: 0; font-size: 1.48rem; }
.catalog-content p { min-height: 39px; margin: 5px 0 13px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.catalog-content a { color: var(--wine); font-size: .73rem; font-weight: 700; }
.catalog-content a:hover { color: var(--gold); }

.contact-section { padding: 94px 0; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(45px, 9vw, 125px); align-items: center; }
.contact-text { max-width: 500px; color: var(--muted); font-size: 1rem; }
.contact-links { display: grid; gap: 9px; margin-top: 24px; }
.contact-link { display: flex; align-items: center; gap: 12px; max-width: 390px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-link b { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: var(--wine); background: #f1dfd2; }
.contact-link small { display: block; color: var(--wine-light); font-size: .59rem; font-weight: 700; letter-spacing: .14em; }
.contact-link span { color: var(--ink); font-size: .88rem; font-weight: 600; }
.map-card { position: relative; display: flex; min-height: 410px; overflow: hidden; align-items: center; justify-content: center; flex-direction: column; border-radius: 24px; color: var(--wine-deep); background: linear-gradient(145deg, #ecd6bf, #f8eadd); box-shadow: 0 22px 48px rgba(75,31,36,.14); text-align: center; }
.map-card::before, .map-card::after { position: absolute; width: 460px; height: 220px; border: 1px solid rgba(101,29,50,.18); border-radius: 50%; content: ""; transform: rotate(25deg); }
.map-card::before { top: -105px; left: -190px; }
.map-card::after { right: -200px; bottom: -90px; }
.map-stamp, .map-card p, .map-card span, .map-card a { position: relative; z-index: 1; }
.map-stamp { display: grid; width: 83px; height: 83px; place-items: center; border-radius: 50% 50% 50% 0; color: #ffead0; background: var(--wine); box-shadow: 10px 10px 0 rgba(101,29,50,.12); font: 700 2rem "Cormorant Garamond", Georgia, serif; transform: rotate(-45deg); }
.map-stamp::first-letter { transform: rotate(45deg); }
.map-card p { margin: 19px 0 0; font: 700 2.9rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .07em; }
.map-card span { margin-bottom: 21px; color: var(--wine-light); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.site-footer { padding: 23px 0; color: #faeee1; background: var(--wine-deep); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; font-size: .74rem; }
.footer-inner a { color: #efd0a6; font-weight: 700; }
.floating-whatsapp { position: fixed; right: 21px; bottom: 21px; z-index: 45; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; color: white; background: var(--wine); box-shadow: 0 11px 25px rgba(58,10,24,.34); font-size: 1.55rem; }

@media (max-width: 980px) {
  .hero-inner, .kalua-inner, .contact-layout { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding: 65px 0; }
  .hero-feature { max-width: 640px; width: 100%; min-height: 520px; margin: 0 auto; }
  .featured-grid, .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .kalua-collage { max-width: 620px; width: 100%; margin: auto; }
  .intro { gap: 35px; grid-template-columns: 1fr; }
  .section-heading, .catalog-top { align-items: start; flex-direction: column; }
  .catalog-tabs { justify-content: start; }
}
@media (max-width: 660px) {
  .site-header { min-height: 72px; }
  .brand img { width: 47px; height: 47px; }
  .brand strong { font-size: 1.2rem; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; right: 0; left: 0; padding: 18px 20px; flex-direction: column; align-items: stretch; gap: 8px; background: #fffaf4; box-shadow: 0 16px 30px rgba(58,10,24,.11); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 7px 0; }
  .page-width { width: min(var(--max-width), calc(100% - 32px)); }
  .hero-inner { padding: 52px 0; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
  h2 { font-size: clamp(2.35rem, 11vw, 3.45rem); }
  .hero-feature, .hero-feature img { min-height: 430px; }
  .promise-bar .page-width { grid-template-columns: 1fr; gap: 6px; }
  .intro, .featured-section, .catalog-section, .contact-section { padding-top: 65px; padding-bottom: 65px; }
  .featured-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .highlight-card div, .catalog-content { padding: 13px; }
  .highlight-card h3 { font-size: 1.35rem; }
  .catalog-content h3 { font-size: 1.3rem; }
  .catalog-content p { min-height: 48px; }
  .kalua-banner { padding: 65px 0; }
  .kalua-collage { grid-template-rows: 145px 145px; gap: 8px; }
  .map-card { min-height: 350px; }
  .footer-inner { flex-direction: column; gap: 5px; }
}


/* Google Sheets v3 */
.sheet-status {
  margin: -13px 0 24px;
  color: var(--wine-light);
  font-size: .78rem;
  font-weight: 600;
}
.sheet-status[data-type="warning"] {
  color: #8a5a24;
}
.product-price {
  display: inline-block;
  margin-top: 5px;
  color: var(--wine);
  font-size: .86rem;
}
.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  border: 1px dashed rgba(101,29,50,.25);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255,250,245,.65);
}


.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hero-stats span {
  text-align: center;
}
.brasilera-banner {
  padding: 78px 0;
  background: linear-gradient(140deg, #f8ecdf 0%, #ecd7c7 58%, #f6efe7 100%);
}
.brasilera-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 115px);
  align-items: center;
}
.brasilera-copy p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}
.brasilera-collage {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  grid-template-rows: 190px 190px;
  gap: 13px;
}
.brasilera-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  background: #fff8f3;
}
.brasilera-collage img:first-child {
  grid-row: span 2;
}
@media (max-width: 980px) {
  .brasilera-inner { grid-template-columns: 1fr; }
  .brasilera-collage { max-width: 620px; width: 100%; margin: auto; }
}
@media (max-width: 660px) {
  .hero-stats { grid-template-columns: 1fr; }
  .brasilera-banner { padding: 65px 0; }
  .brasilera-collage { grid-template-rows: 145px 145px; gap: 8px; }
}


/* Quita el tap azul en celulares */
a,
button,
.button,
.catalog-tab,
.menu-toggle,
.contact-link,
.floating-whatsapp {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


/* Carrito WhatsApp v5 */
body.cart-open {
  overflow: hidden;
}

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

.add-cart-btn {
  border: 0;
  padding: 9px 12px;
  border-radius: 999px;
  color: #fffaf4;
  background: var(--wine);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .18s ease, background .18s ease;
}

.add-cart-btn:hover {
  background: var(--wine-deep);
  transform: translateY(-1px);
}

.cart-toggle {
  position: fixed;
  right: 21px;
  bottom: 88px;
  z-index: 48;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--wine-deep);
  box-shadow: 0 11px 25px rgba(58,10,24,.34);
  cursor: pointer;
  font-size: 1.32rem;
}

.cart-toggle span {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 99px;
  color: var(--wine);
  background: #f5d5b6;
  font-size: .68rem;
  font-weight: 900;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(38, 10, 20, .34);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  width: min(430px, 100%);
  height: 100dvh;
  padding: 25px;
  flex-direction: column;
  background: #fffaf4;
  box-shadow: -18px 0 45px rgba(58,10,24,.22);
  transform: translateX(104%);
  transition: transform .24s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-size: 2.4rem;
}

.cart-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--wine);
  background: #f1dfd2;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px 2px;
}

.cart-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(101,29,50,.25);
  border-radius: 16px;
  color: var(--muted);
  background: #fff4ea;
  font-size: .9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(101,29,50,.09);
  border-radius: 16px;
  background: #fffdf9;
}

.cart-item img {
  width: 78px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: #ead8c9;
}

.cart-item h3 {
  margin: 0;
  font-size: 1.25rem;
}

.cart-item p {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.35;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-bottom span {
  color: var(--wine);
  font-size: .78rem;
  font-weight: 800;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(101,29,50,.18);
  border-radius: 999px;
  background: #fff8f1;
}

.quantity-controls button {
  width: 30px;
  height: 28px;
  border: 0;
  color: var(--wine);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.quantity-controls strong {
  min-width: 24px;
  color: var(--ink);
  text-align: center;
  font-size: .78rem;
}

.remove-cart-item,
.cart-clear {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: underline;
}

.cart-form {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.cart-form label {
  color: var(--wine-light);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cart-form input {
  width: 100%;
  border: 1px solid rgba(101,29,50,.16);
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  background: white;
  font: inherit;
}

.cart-form input:focus {
  border-color: rgba(101,29,50,.42);
  box-shadow: 0 0 0 4px rgba(101,29,50,.08);
}

.cart-total {
  margin: 7px 0 4px;
  color: var(--wine);
  font-size: 1rem;
  font-weight: 900;
}

.cart-send {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.cart-toggle,
.cart-close,
.add-cart-btn,
.quantity-controls button,
.remove-cart-item,
.cart-clear {
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

@media (max-width: 660px) {
  .cart-drawer {
    padding: 20px 16px;
  }

  .cart-toggle {
    right: 17px;
    bottom: 84px;
    width: 53px;
    height: 53px;
  }

  .catalog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .add-cart-btn {
    width: 100%;
  }
}


/* Nota legal del pie */
.footer-copy {
  display: grid;
  gap: 5px;
}

.footer-copy small,
.footer-disclaimer {
  display: block;
  max-width: 720px;
  color: rgba(250, 238, 225, .76);
  font-size: .68rem;
  line-height: 1.45;
}

@media (max-width: 660px) {
  .footer-copy small,
  .footer-disclaimer {
    font-size: .65rem;
  }
}
