:root{
  --page-bg:#FFBFBB; --page-ink:#3A2E2C;
  --paper:#FFF9F8; --paper-2:#FFBFBB; --rose:#C97D89; --wine:#6B2737; --gold:#A9803F;
  --ink:#372A2A; --logo-pink:#FFBFBB;
}
*{ box-sizing:border-box; }
body{ margin:0; background:var(--paper); color:var(--ink); font-family:'Jost',sans-serif; }
a{ color:inherit; }
img{ max-width:100%; display:block; }

/* ---- Header ---- */
header{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:4px 36px; border-bottom:1px solid rgba(51,38,34,0.22); background:var(--logo-pink); }
nav{ display:flex; gap:28px; font-size:16px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink); }
nav a{ text-decoration:none; }
nav a:hover, nav a:focus-visible{ opacity:0.65; }
header > nav{ grid-column:1; justify-self:start; }
.menu-btn{ grid-column:1; justify-self:start; display:none; background:none; border:none; color:var(--ink); cursor:pointer; padding:6px; }
.menu-btn svg{ width:28px; height:28px; }
.mobile-nav{ display:none; flex-direction:column; background:var(--logo-pink); border-bottom:1px solid rgba(51,38,34,0.22); }
.mobile-nav.open{ display:flex; }
.mobile-nav a{ padding:16px 20px; font-size:16px; font-weight:600; text-transform:uppercase; text-decoration:none; color:var(--ink); border-top:1px solid rgba(51,38,34,0.15); }
.header-right{ justify-self:end; display:flex; align-items:center; gap:16px; }
.icon-btn{ display:flex; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid var(--ink); border-radius:50%; color:var(--ink); background:transparent; cursor:pointer; }
.icon-btn svg{ width:19px; height:19px; }
.icon-btn:hover{ background:rgba(55,42,42,0.08); }
.icon-btn:focus-visible, .cta:focus-visible{ outline:2px solid var(--wine); outline-offset:2px; }
.cta{ -webkit-appearance:none; appearance:none; position:relative; border:1px solid var(--ink); padding:11px 20px; font-size:14px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; background:transparent; color:var(--ink); cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.cta:hover{ background:rgba(55,42,42,0.08); }
.cta .count{ display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 4px; border-radius:999px; background:var(--wine); color:var(--paper); font-size:11px; }
.cta .count[hidden]{ display:none; }
.brand{ justify-self:center; display:flex; align-items:center; padding:4px 0; }
.brand img{ width:140px; height:140px; border-radius:50%; object-fit:cover; }

/* ---- Hero ---- */
.carousel{ position:relative; height:520px; overflow:hidden; }
.slide{ position:absolute; inset:0; opacity:0; animation:slideCycle 12s infinite; }
.slide img{ width:100%; height:100%; object-fit:cover; }
.slide:nth-child(1){ animation-delay:0s; }
.slide:nth-child(2){ animation-delay:-4s; }
.slide:nth-child(3){ animation-delay:-8s; }
@keyframes slideCycle{ 0%{opacity:0;} 4%{opacity:1;} 30%{opacity:1;} 37%{opacity:0;} 100%{opacity:0;} }
.carousel-scrim{ position:absolute; inset:0; background:linear-gradient(to bottom, rgba(28,18,15,0.25) 0%, rgba(28,18,15,0.62) 45%, rgba(28,18,15,0.86) 72%, var(--paper) 100%); pointer-events:none; }
.arrow{ position:absolute; top:50%; transform:translateY(-50%); width:36px; height:36px; border:1px solid rgba(242,230,216,0.7); background:transparent; color:#F2E6D8; font-size:16px; line-height:1; cursor:pointer; }
.arrow.left{ left:20px; } .arrow.right{ right:20px; }
.dots{ position:absolute; bottom:26px; left:0; right:0; display:flex; justify-content:center; gap:8px; }
.dot{ width:6px; height:6px; border:1px solid #F2E6D8; display:inline-block; padding:0; background:transparent; }
.dot.active{ background:#F2E6D8; }

.hero-copy{ position:absolute; left:0; right:0; bottom:96px; z-index:3; padding:0 52px; max-width:620px; }
.hero-copy h1{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:38px; line-height:1.15; margin:0 0 16px; color:#FBF6EC; }
.hero-copy h1 em{ font-style:normal; font-family:'Parisienne',cursive; font-weight:400; color:#F5D4D8; font-size:1.1em; }
.hero-copy p{ font-size:14.5px; font-weight:500; line-height:1.7; color:#F3E8DA; max-width:440px; margin:0 0 22px; }
.btn{ display:inline-flex; align-items:center; gap:8px; background:var(--wine); color:var(--paper); padding:14px 28px; font-size:12px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; text-decoration:none; border:none; box-shadow:4px 4px 0 rgba(0,0,0,0.3); cursor:pointer; }
.btn:hover{ background:#571f2c; }
.btn:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.strip{ background:var(--paper-2); border-top:1px solid rgba(51,38,34,0.22); border-bottom:1px solid rgba(51,38,34,0.22); padding:14px 36px; text-align:center; font-size:12px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--wine); }

/* ---- Catálogo ---- */
.catalog{ padding:48px 36px 56px; max-width:1280px; margin:0 auto; }
.catalog-head{ display:flex; justify-content:space-between; align-items:flex-end; border-bottom:1px solid rgba(51,38,34,0.25); padding-bottom:14px; margin-bottom:32px; }
.catalog-head h2{ font-family:'Cormorant Garamond',serif; font-weight:600; color:var(--wine); font-size:26px; margin:0; }
.catalog-head span{ font-size:11px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--wine); }
.grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; }
.item{ border-right:1px solid rgba(51,38,34,0.22); border-bottom:1px solid rgba(51,38,34,0.22); padding:20px 20px 24px; text-decoration:none; color:inherit; display:block; }
.item:nth-child(4n){ border-right:none; }
.item .thumb{ position:relative; aspect-ratio:1; background:var(--paper-2); border:1px solid rgba(51,38,34,0.18); margin-bottom:12px; overflow:hidden; }
.item .thumb img{ width:100%; height:100%; object-fit:cover; }
.item .thumb:not(.has-alt) .thumb-img{ transition:transform .5s cubic-bezier(.22,1,.36,1); }
.item:hover .thumb:not(.has-alt) .thumb-img{ transform:scale(1.05); }
.item .thumb .thumb-img-alt{ position:absolute; inset:0; opacity:0; transition:opacity .8s cubic-bezier(.22,1,.36,1); }
.item:hover .thumb.has-alt .thumb-img-alt{ opacity:1; }
.item .stamp{ position:absolute; top:12px; left:12px; border:1px solid var(--ink); background:var(--paper); padding:4px 6px; font-family:'Cormorant Garamond', serif; font-size:9px; text-align:center; line-height:1.2; color:var(--wine); }
.item .sold-ribbon{ position:absolute; top:12px; right:12px; background:var(--ink); color:var(--paper); font-size:10px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:4px 8px; }
.item .origin{ font-size:10px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color:var(--gold); margin:0 0 4px; }
.item .name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:17px; margin:0 0 4px; }
.item .price{ font-size:13px; font-weight:600; color:var(--wine); margin:0; }
.empty-msg{ text-align:center; padding:40px 0; color:var(--ink); opacity:0.6; }

/* ---- Producto (agregar al carrito) ---- */
.add-row{ display:flex; align-items:center; gap:10px; margin-top:8px; }
.qty-stepper{ display:flex; align-items:center; border:1px solid var(--ink); }
.qty-stepper button{ width:30px; height:30px; border:none; background:transparent; font-size:16px; cursor:pointer; color:var(--ink); }
.qty-stepper button:hover{ background:rgba(55,42,42,0.08); }
.qty-stepper span{ width:28px; text-align:center; font-size:14px; font-weight:600; }
.add-btn{ background:var(--wine); color:var(--paper); border:none; padding:10px 18px; font-size:12px; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; cursor:pointer; box-shadow:3px 3px 0 rgba(0,0,0,0.25); }
.add-btn:hover{ background:#571f2c; }
.add-btn:disabled{ background:rgba(55,42,42,0.35); box-shadow:none; cursor:not-allowed; }

/* ---- Detalle de producto ---- */
.breadcrumb{ max-width:1100px; margin:24px auto 0; padding:0 36px; font-size:12px; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold); }
.breadcrumb a{ text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }
.product-detail{ max-width:1100px; margin:0 auto; padding:28px 36px 64px; display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.product-detail .photo{ border:1px solid rgba(51,38,34,0.18); aspect-ratio:1; overflow:hidden; }
.product-detail .photo img{ width:100%; height:100%; object-fit:cover; }
.thumb-row{ display:flex; gap:10px; margin-top:12px; }
.thumb-btn{ width:64px; height:64px; padding:0; border:1px solid rgba(51,38,34,0.18); background:none; cursor:pointer; overflow:hidden; opacity:0.6; }
.thumb-btn img{ width:100%; height:100%; object-fit:cover; }
.thumb-btn.active, .thumb-btn:hover{ opacity:1; border-color:var(--wine); }
.video-wrap{ position:relative; aspect-ratio:16/9; margin-top:16px; border:1px solid rgba(51,38,34,0.18); }
.video-wrap iframe{ position:absolute; inset:0; width:100%; height:100%; border:none; }
.product-detail .origin{ font-size:11px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; color:var(--gold); margin:0 0 10px; }
.product-detail h1{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:32px; color:var(--wine); margin:0 0 14px; }
.product-detail .price{ font-size:20px; font-weight:600; color:var(--wine); margin:0 0 20px; }
.product-detail .desc{ font-size:15px; line-height:1.75; color:var(--ink); margin:0 0 28px; }
.sold-note{ font-size:13px; font-weight:600; text-transform:uppercase; letter-spacing:0.08em; color:var(--ink); border:1px solid var(--ink); display:inline-block; padding:10px 16px; }
.not-found{ max-width:640px; margin:80px auto; text-align:center; padding:0 24px; }
.not-found h1{ font-family:'Cormorant Garamond',serif; color:var(--wine); }

/* ---- Nosotras ---- */
.nosotras{ max-width:720px; margin:0 auto; padding:64px 36px 72px; text-align:center; }
.nosotras .eyebrow{ font-size:11px; font-weight:600; letter-spacing:0.3em; text-transform:uppercase; color:var(--gold); margin:0 0 22px; }
.nosotras .greeting{ font-family:'Parisienne',cursive; font-size:34px; color:var(--wine); margin:0 0 18px; }
.nosotras p{ font-size:16px; font-weight:500; line-height:1.85; color:var(--ink); margin:0 0 22px; }
.nosotras .closing{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:20px; color:var(--wine); margin:36px 0 0; }

/* ---- Franja de confianza ---- */
.trust{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid rgba(51,38,34,0.22); border-bottom:1px solid rgba(51,38,34,0.22); max-width:1280px; margin:0 auto; }
.trust div{ padding:26px 24px; text-align:center; border-right:1px solid rgba(51,38,34,0.22); font-size:13px; font-weight:500; line-height:1.6; color:var(--ink); }
.trust div:last-child{ border-right:none; }

/* ---- Pie ---- */
.foot{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:32px; padding:32px 36px; background:var(--paper-2); border-top:1px solid rgba(51,38,34,0.22); font-size:12.5px; }
.foot h3{ font-size:11px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:var(--wine); margin:0 0 10px; }
.foot p{ margin:0 0 4px; line-height:1.6; color:var(--ink); }
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{ border:1px solid rgba(51,38,34,0.3); padding:3px 8px; font-size:10px; font-weight:600; letter-spacing:0.05em; text-transform:uppercase; }

/* ---- WhatsApp flotante ---- */
.wa-float{ position:fixed; right:24px; bottom:24px; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -8px rgba(0,0,0,0.4); z-index:50; text-decoration:none; }
.wa-float svg{ width:30px; height:30px; }
.wa-float:hover{ background:#1ebe5b; }

/* ---- Panel "Tu pedido" ---- */
.cart-overlay{ position:fixed; inset:0; background:rgba(55,42,42,0.4); z-index:60; opacity:0; pointer-events:none; transition:opacity .3s; }
.cart-overlay.open{ opacity:1; pointer-events:auto; }
.cart-panel{ position:fixed; top:0; right:0; bottom:0; width:min(420px,92vw); background:var(--paper); z-index:61; transform:translateX(100%); transition:transform .35s cubic-bezier(.22,1,.36,1); display:flex; flex-direction:column; box-shadow:-12px 0 30px -12px rgba(0,0,0,0.3); }
.cart-panel.open{ transform:translateX(0); }
.cart-header{ display:flex; align-items:center; justify-content:space-between; padding:20px 24px; border-bottom:1px solid rgba(51,38,34,0.2); }
.cart-header h2{ font-family:'Cormorant Garamond',serif; color:var(--wine); font-size:22px; margin:0; }
.cart-close{ background:none; border:none; cursor:pointer; color:var(--ink); padding:4px; }
.cart-close svg{ width:22px; height:22px; }
.cart-items{ flex:1; overflow-y:auto; padding:12px 24px; }
.cart-line{ display:flex; gap:12px; padding:14px 0; border-bottom:1px solid rgba(51,38,34,0.12); }
.cart-line img{ width:64px; height:64px; object-fit:cover; border:1px solid rgba(51,38,34,0.18); }
.cart-line .info{ flex:1; }
.cart-line .name{ font-family:'Cormorant Garamond',serif; font-weight:600; font-size:15px; margin:0 0 4px; }
.cart-line .sub{ font-size:12px; color:var(--rose); }
.cart-footer{ padding:20px 24px; border-top:1px solid rgba(51,38,34,0.2); }
.cart-total{ display:flex; justify-content:space-between; font-size:14px; font-weight:600; margin-bottom:14px; }
.cart-empty{ text-align:center; padding:40px 0; color:var(--ink); opacity:0.6; font-size:14px; }

@media (max-width:860px){
  .carousel{ height:440px; }
  .arrow{ display:none; }
  .hero-copy{ bottom:64px; padding:0 24px; max-width:100%; }
  .hero-copy h1{ font-size:34px; margin:0 0 12px; }
  .hero-copy p{ font-size:16.5px; line-height:1.6; margin:0 0 18px; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .item:nth-child(2n){ border-right:none; }
  .foot{ grid-template-columns:1fr; }
  nav{ display:none; }
  header{ padding:4px 20px; }
  .icon-btn{ display:none; }
  .menu-btn{ display:block; }
  .cta{ padding:8px 12px; font-size:11px; }
  .brand img{ width:90px; height:90px; }
  .product-detail{ grid-template-columns:1fr; gap:24px; padding:20px 20px 48px; }
}
