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

/* ==========================================================================
   BASE
   ========================================================================== */

:root {
  --wine: #762c40;
  --cream: #faf7f2;
  --line: #e4dbd5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: #34282b;
  font: 14px 'DM Sans', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #b77940;
  outline-offset: 3px;
}

/* ==========================================================================
   ANUNCIO + HEADER
   ========================================================================== */

.announcement {
  background: var(--wine);
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 9px;
  letter-spacing: 2.5px;
}

header {
  max-width: 1320px;
  padding: 28px 60px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font: 30px 'Playfair Display', serif;
  letter-spacing: -1px;
  color: var(--wine);
}

.brand small {
  display: block;
  font: 8px 'DM Sans', sans-serif;
  letter-spacing: 2.5px;
  margin-top: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
}

button {
  background: transparent;
  border: 1px solid #b58d94;
  color: var(--wine);
  padding: 11px 16px;
  border-radius: 3px;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  max-width: 1320px;
  margin: auto;
  padding: 20px 60px 55px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--wine);
  font-weight: 600;
}

h1 {
  font: 60px/1.12 'Playfair Display', serif;
  letter-spacing: -2px;
  margin: 25px 0;
}

h1 em {
  color: var(--wine);
}

.intro {
  max-width: 330px;
  line-height: 1.9;
  color: #816b72;
}

.primary {
  display: inline-block;
  background: var(--wine);
  color: white;
  border: 0;
  padding: 16px 24px;
  font-size: 12px;
  margin-top: 18px;
  border-radius: 3px;
}

.note {
  font-size: 10px;
  color: #8b767b;
  margin-top: 32px;
}

/* --- Ilustración del hero --- */

.art {
  height: 460px;
  overflow: hidden;
  position: relative;
  border-radius: 190px 190px 5px 5px;
  background: linear-gradient(130deg, #efdfd3, #d6afa4);
}

.art-title {
  position: absolute;
  top: 38px;
  width: 100%;
  text-align: center;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--wine);
}

.circle {
  position: absolute;
  top: 85px;
  left: 20%;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: #f3dfcc;
}

.hero-bottle {
  position: absolute;
  left: 25%;
  top: 165px;
  width: 115px;
  height: 220px;
  border-radius: 10px 10px 20px 20px;
  background: linear-gradient(90deg, #91ab9b, #d2e7cb, #8eaa98);
  transform: rotate(-12deg);
  text-align: center;
  padding-top: 48px;
  box-shadow: 18px 20px 20px #69453330;
}

.hero-bottle:before {
  content: '';
  position: absolute;
  top: -65px;
  left: 8px;
  width: 99px;
  height: 75px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #222, #5d5850, #171717);
}

.hero-bottle b {
  font-size: 43px;
  letter-spacing: -3px;
}

.hero-bottle small {
  display: block;
  margin-top: 20px;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 2;
}

.lip {
  position: absolute;
  top: 260px;
  right: 19%;
  height: 115px;
  width: 55px;
  background: linear-gradient(90deg, #211b1c, #5d4b50, #181515);
  transform: rotate(14deg);
  color: white;
  text-align: center;
  padding-top: 40px;
  font-size: 20px;
  box-shadow: 12px 20px 18px #69453330;
}

.lip:before {
  content: '';
  position: absolute;
  top: -72px;
  left: 9px;
  width: 37px;
  height: 74px;
  border-radius: 25px 8px 0 0;
  background: linear-gradient(90deg, #9c364f, #d2697c, #a63a50);
}

.compact {
  position: absolute;
  bottom: 23px;
  left: 48%;
  width: 150px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(140deg, #d69291, #ecb9a5);
  border: 8px solid #ecc3ad;
  transform: rotate(-14deg);
  font: 23px 'Playfair Display', serif;
  color: var(--wine);
  text-align: center;
  padding-top: 10px;
  box-shadow: 10px 15px 15px #69453330;
}

.compact em {
  font-size: 15px;
}

.spark {
  position: absolute;
  right: 12%;
  top: 110px;
  font-size: 65px;
  color: var(--wine);
}

.caption {
  position: absolute;
  bottom: 7px;
  text-align: center;
  width: 100%;
  font-size: 8px;
  color: #714c4e;
}

/* ==========================================================================
   TICKER
   ========================================================================== */

.ticker {
  border-block: 1px solid var(--line);
  padding: 20px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--wine);
  white-space: nowrap;
  overflow: hidden;
}

/* ==========================================================================
   CATÁLOGO
   ========================================================================== */

#catalogo {
  max-width: 1320px;
  margin: auto;
  padding: 60px;
}

.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.heading > p {
  font-size: 12px;
  color: #8c747a;
  line-height: 1.9;
}

h2 {
  font: 38px 'Playfair Display', serif;
  letter-spacing: -1px;
  margin: 12px 0 24px;
}

.notice {
  background: #f1e8df;
  border: 1px solid #e4d7cd;
  color: #7c665e;
  padding: 14px 18px;
  font-size: 11px;
  line-height: 1.8;
  margin: 10px 0 28px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#filters button {
  font-size: 11px;
  border-radius: 20px;
  padding: 9px 14px;
  border-color: var(--line);
}

#filters button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: white;
}

#search {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #bda9ad;
  padding: 12px 2px;
  font-size: 12px;
  width: 190px;
}

.results {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #927e83;
  letter-spacing: 1px;
  margin: 25px 0 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
}

/* --- Tarjeta de producto --- */

.product-art {
  height: 210px;
  position: relative;
  background: #eee5dc;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
}

.product:nth-child(3n+2) .product-art {
  background: #e7e9df;
}

.product:nth-child(3n) .product-art {
  background: #f0e0df;
}

.shape {
  position: relative;
  transform: rotate(-7deg);
  width: 60px;
  height: 115px;
  border-radius: 7px 7px 12px 12px;
  background: linear-gradient(90deg, #b29b8a, #edd9c9, #bea693);
  box-shadow: 10px 13px 12px #49302520;
  text-align: center;
  padding-top: 38px;
}

.shape:before {
  content: '';
  position: absolute;
  left: 0;
  top: -25px;
  height: 33px;
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #262222, #5b5150, #242121);
}

.shape b {
  font-size: 26px;
  letter-spacing: -2px;
}

.product-art small {
  position: absolute;
  bottom: 9px;
  font-size: 8px;
  color: #8a7774;
}

/* Variantes de forma por categoría */

.product-art.lips .shape {
  width: 32px;
  height: 105px;
  background: linear-gradient(90deg, #a5576a, #dd97a6, #ab6578);
}

.product-art.eyes .shape {
  width: 20px;
  height: 140px;
  background: #39312f;
}

.product-art.eyes b {
  font-size: 13px;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

.product-art.round .shape {
  width: 110px;
  height: 85px;
  border-radius: 50%;
  padding-top: 24px;
  background: linear-gradient(135deg, #e6bea9, #b87c77);
}

.product-art.round .shape:before {
  display: none;
}

.product-art.tools .shape {
  width: 20px;
  height: 115px;
  background: #39312f;
}

.product-art.tools .shape:before {
  width: 58px;
  left: -19px;
  height: 45px;
  border-radius: 45% 45% 10% 10%;
  background: linear-gradient(#98765c, #d4b297);
}

.product-art.tools b {
  font-size: 13px;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

/* Texto de la tarjeta */

.category {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #966f78;
  margin: 17px 0 8px;
  text-transform: uppercase;
}

.product h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  min-height: 38px;
  line-height: 1.5;
}

.detail {
  color: #9a858a;
  font-size: 10px;
  margin: 6px 0 13px;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #80656d;
}

.add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  font-size: 20px;
}

.add.chosen {
  color: white;
  background: var(--wine);
}

/* ==========================================================================
   CÓMO FUNCIONA
   ========================================================================== */

.how {
  background: #eee2da;
  text-align: center;
  padding: 48px 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1060px;
  gap: 50px;
  margin: 35px auto 10px;
}

.steps article > span {
  font: 25px 'Playfair Display', serif;
  color: #a2757d;
}

.steps h3 {
  font-size: 14px;
  font-weight: 500;
}

.steps p {
  font-size: 12px;
  color: #8d7479;
  line-height: 1.9;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  max-width: 1320px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  padding: 40px 60px;
}

footer p,
footer > a {
  font-size: 10px;
  color: #8a7177;
}

/* ==========================================================================
   DIÁLOGO "MI SELECCIÓN"
   ========================================================================== */

dialog {
  max-width: 500px;
  width: calc(100% - 30px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
  color: #34282b;
  padding: 25px;
}

dialog::backdrop {
  background: #31202788;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-heading h2 {
  font-size: 30px;
  margin: 0;
}

.dialog-heading button {
  border: 0;
}

dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: #896f76;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.row button {
  border: 0;
  padding: 8px;
}

#empty {
  text-align: center;
  padding: 35px;
  color: #896f76;
}

/* ==========================================================================
   RESPONSIVE (base)
   ========================================================================== */

@media (max-width: 950px) {
  header {
    padding: 25px 28px;
  }

  .hero {
    padding: 20px 28px 40px;
    gap: 25px;
  }

  h1 {
    font-size: 48px;
  }

  .art {
    height: 430px;
  }

  #catalogo {
    padding: 45px 28px;
  }

  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how {
    padding: 40px 28px;
  }

  .steps {
    gap: 25px;
  }

  footer {
    padding: 30px 28px;
  }
}

@media (max-width: 650px) {
  .announcement {
    font-size: 8px;
    letter-spacing: 1.4px;
  }

  header {
    padding: 22px 20px;
  }

  .brand {
    font-size: 25px;
  }

  nav > a {
    display: none;
  }

  nav button {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 10px 20px 30px;
    gap: 30px;
  }

  h1 {
    font-size: 49px;
    margin: 22px 0;
  }

  .art {
    height: 400px;
  }

  .hero-bottle {
    top: 135px;
    height: 205px;
  }

  .lip {
    top: 225px;
  }

  .circle {
    top: 60px;
  }

  .art-title {
    top: 28px;
  }

  .compact {
    bottom: 25px;
  }

  .ticker {
    font-size: 8px;
    letter-spacing: 1.5px;
    padding: 16px;
  }

  #catalogo {
    padding: 35px 20px;
  }

  .heading > p {
    display: none;
  }

  h2 {
    font-size: 32px;
  }

  .notice {
    font-size: 10px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 13px;
  }

  .product-art {
    height: 180px;
  }

  .product h3 {
    font-size: 12px;
    min-height: 38px;
  }

  .detail {
    line-height: 1.6;
  }

  .bottom {
    font-size: 10px;
  }

  #search {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }

  .steps article {
    padding-left: 45px;
    position: relative;
  }

  .steps article > span {
    position: absolute;
    left: 0;
    top: 8px;
  }

  .how {
    text-align: left;
    padding: 35px 25px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   WHATSAPP
   ========================================================================== */

.whatsapp {
  background: #1b704b;
  display: block;
  text-align: center;
  margin-top: 22px;
}

.whatsapp[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.whatsapp-note {
  font-size: 11px;
}

#copy {
  margin-top: 6px;
}

/* ==========================================================================
   PRODUCTOS CON FOTO
   ========================================================================== */

.product-art.photo {
  background: #fff;
  padding: 16px 18px 30px;
}

.product-art.photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.product-art.photo small {
  font-size: 8px;
  text-align: center;
  left: 5px;
  right: 5px;
}

.photo-options {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.photo-options button {
  border-radius: 50%;
  padding: 0;
  width: 27px;
  height: 27px;
  font-size: 11px;
}

.photo-options button[aria-pressed="true"] {
  background: var(--wine);
  color: #fff;
}

/* ==========================================================================
   COMBOS
   ========================================================================== */

.combo-section {
  background: #f1e7e1;
  border-block: 1px solid #e8dad3;
  scroll-margin-top: 20px;
}

.combo-inner {
  max-width: 1320px;
  margin: auto;
  padding: 55px 60px 40px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 14px;
}

.bundle-card {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  background: var(--cream);
  border: 1px solid #e6d8d1;
  border-radius: 8px;
  overflow: hidden;
}

.bundle-photos {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: #fff;
  padding: 40px 8px 25px;
  min-height: 295px;
}

.bundle-photos img {
  width: 46%;
  height: 185px;
  object-fit: contain;
  min-width: 0;
}

.bundle-photos > span:not(.bundle-saving) {
  color: #b69b9e;
  font-size: 18px;
}

.bundle-saving {
  position: absolute;
  top: 13px;
  left: 10px;
  right: 10px;
  text-align: center;
  padding: 7px 5px;
  border-radius: 3px;
  background: #eee3db;
  color: var(--wine);
  font-size: 9px;
  letter-spacing: .4px;
}

.bundle-copy {
  padding: 24px 20px;
  min-width: 0;
}

.bundle-copy .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 0;
}

.bundle-copy h3 {
  font: 25px/1.2 'Playfair Display', serif;
  letter-spacing: -.5px;
  margin: 10px 0;
}

.bundle-copy > p:not(.eyebrow) {
  font-size: 11px;
  color: #856c73;
  line-height: 1.7;
}

.bundle-copy ul {
  padding-left: 14px;
  font-size: 10px;
  line-height: 1.8;
  color: #705b62;
  margin: 12px 0;
}

.bundle-prices strong {
  display: block;
  font-size: 21px;
  color: var(--wine);
  font-weight: 500;
}

.bundle-prices span {
  display: block;
  color: #8c777b;
  font-size: 10px;
  margin-top: 5px;
}

.bundle-add {
  width: 100%;
  margin-top: 16px;
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  font-size: 11px;
  padding: 12px 8px;
}

.bundle-add.selected {
  background: #f1e4e7;
  color: var(--wine);
}

.combo-footnote {
  font-size: 10px;
  color: #876f75;
  line-height: 1.8;
  margin: 22px 0 0;
}

.product-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--wine);
}

/* ==========================================================================
   LISTA DE SELECCIÓN (dentro del diálogo)
   ========================================================================== */

.selection-row > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.selection-row strong {
  font-size: 12px;
  font-weight: 500;
}

.selection-row small {
  font-size: 10px;
  color: #93767e;
  line-height: 1.6;
}

.selection-row span {
  font-size: 12px;
  color: var(--wine);
}

.selection-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #d5bdc5;
  margin-top: 20px;
  padding-top: 18px;
  font-size: 13px;
}

.selection-total strong {
  color: var(--wine);
}

dialog {
  max-height: 85vh;
  overflow-y: auto;
}

/* ==========================================================================
   BARRA DE SELECCIÓN FIJA
   ========================================================================== */

#selection-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 30px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fffaf7;
  border: 1px solid #d9c2c7;
  border-radius: 7px;
  padding: 10px 12px;
  box-shadow: 0 6px 24px #4a293322;
  z-index: 10;
}

#selection-bar[hidden] {
  display: none;
}

#selection-summary {
  font-size: 11px;
  color: var(--wine);
}

#open-bottom {
  background: var(--wine);
  color: white;
  border-color: var(--wine);
  font-size: 11px;
  white-space: nowrap;
}

/* ==========================================================================
   UTILIDADES
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  padding-bottom: 100px;
}

/* ==========================================================================
   RESPONSIVE (combos y barra de selección)
   ========================================================================== */

@media (max-width: 1100px) {
  .bundle-card {
    grid-template-columns: 1fr;
  }

  .bundle-photos {
    min-height: 190px;
    padding: 30px 25px 10px;
  }

  .bundle-photos img {
    height: 155px;
    max-width: 110px;
  }

  .bundle-saving {
    left: auto;
    right: 12px;
    max-width: 150px;
  }

  .bundle-copy {
    padding: 22px;
  }

  .bundle-copy h3 {
    font-size: 27px;
  }
}

@media (max-width: 950px) {
  .combo-inner {
    padding: 40px 28px 30px;
  }
}

@media (max-width: 650px) {
  .combo-inner {
    padding: 35px 20px 25px;
  }

  .bundle-grid {
    gap: 13px;
  }

  .bundle-photos {
    min-height: 160px;
    padding: 35px 8px 7px;
  }

  .bundle-photos img {
    height: 115px;
    max-width: 85px;
  }

  .bundle-saving {
    font-size: 8px;
    top: 9px;
    left: 7px;
    right: 7px;
    max-width: none;
    padding: 6px 2px;
  }

  .bundle-copy {
    padding: 16px 12px;
  }

  .bundle-copy .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .bundle-copy h3 {
    font-size: 22px;
    min-height: 53px;
  }

  .bundle-copy > p:not(.eyebrow) {
    font-size: 10px;
    min-height: 52px;
  }

  .bundle-copy ul {
    font-size: 9px;
    min-height: 69px;
    padding-left: 12px;
  }

  .bundle-prices strong {
    font-size: 18px;
  }

  .bundle-prices span {
    font-size: 9px;
  }

  .bundle-add {
    font-size: 10px;
  }

  .product-price {
    font-size: 12px;
  }

  .combo-footnote {
    font-size: 9px;
  }

  #selection-bar {
    bottom: 10px;
  }

  #selection-summary {
    font-size: 10px;
  }

  #open-bottom {
    padding: 11px 9px;
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .bundle-grid {
    grid-template-columns: 1fr;
  }

  .bundle-copy h3,
  .bundle-copy > p:not(.eyebrow),
  .bundle-copy ul {
    min-height: 0;
  }
}

/* ==========================================================================
   AVISO DE SERVICIO LOCAL (Monterrey)
   ========================================================================== */

.local-service {
  border-left: 3px solid var(--wine);
  padding: 10px 14px;
  background: #efe3e4;
  margin: 18px 0;
  max-width: 365px;
}

.local-service strong {
  display: block;
  color: var(--wine);
  font-size: 13px;
}

.local-service span {
  display: block;
  font-size: 11px;
  color: #80616a;
  line-height: 1.7;
  margin-top: 5px;
}

.local-order-note {
  background: #efe3e4;
  padding: 10px 12px;
  border-radius: 3px;
}

.announcement {
  line-height: 1.7;
}
