/* Grabados de la colección. Cada celda utiliza la misma plancha de ilustraciones. */
#aroma-list button i {
  background-image: url("img/iconos-elite.webp");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  background-position: var(--grabado, 100% 100%) !important;
}
#aroma-list [data-aroma="Frutales"] { --grabado: 33.3333% 100%; }
#aroma-list [data-aroma="Cítricos"] { --grabado: 33.3333% 66.6667%; }
#aroma-list [data-aroma="Florales"] { --grabado: 0% 100%; }
#aroma-list [data-aroma="Dulces"] { --grabado: 66.6667% 66.6667%; }
#aroma-list [data-aroma="Amaderados"] { --grabado: 100% 66.6667%; }
#aroma-list [data-aroma="Acuáticos"] { --grabado: 33.3333% 33.3333%; }

@media (max-width: 767px) {
  .shell {
    width: min(calc(100% - clamp(28px, 8vw, 56px)), 690px);
  }
  .trust-band { padding: .4rem .5rem; font-size: .77rem; }
  header nav.shell {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    height: auto;
    min-height: 3.8rem;
    padding-block: .25rem;
    gap: 0 .25rem;
  }
  nav > a:first-child { display: inline-flex; min-height: 44px; align-items: center; }
  nav img { width: clamp(68px, 19vw, 101px); height: 36px; }
  header .navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem clamp(5px, 2vw, 16px); }
  header .navlinks a, header .navlinks .delivery-nav {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #513342;
    font-size: clamp(.77rem, 3vw, .92rem);
  }
  header .navlinks .contact { padding: 0 .5rem; border: 0; border-left: 1px solid var(--hair); }
  .hero {
    height: auto;
    min-height: clamp(282px, 65vw, 390px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: .3rem;
  }
  .scene[data-escena]::before {
    background: linear-gradient(90deg, #faf6efe8 0%, #faf6efcd 43%, #faf6ef32 72%, transparent 90%);
  }
  .hero-copy { padding-block: clamp(28px, 8vw, 48px); min-width: 0; }
  .hero .brand { font-size: .77rem; letter-spacing: .16em; }
  .hero-copy h1 {
    margin: .45rem 0 .65rem;
    font: 400 clamp(3.15rem, 11vw, 5.8rem)/.98 var(--display);
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }
  .hero-copy p { font-size: clamp(.95rem, 3.7vw, 1.22rem); line-height: 1.45; margin: 0 0 1rem; }
  .hero-copy #notes, .product .scent {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .hero .actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .1rem .7rem; }
  .hero .actions a { display: inline-flex; align-items: center; min-height: 44px; }
  .hero .button { border-radius: .32rem; padding: .65rem .85rem; font-size: .88rem; }
  .hero .line-link { border: 0; font-size: .85rem; text-decoration: underline; text-underline-offset: .25rem; }
  .stage { min-height: 0; height: auto; align-self: stretch; }
  .stage img { width: 105%; height: 78%; bottom: 11%; }
  .stage::before { bottom: 11%; }

  .olfactory {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
    margin-top: 0;
    padding: 1.55rem 0 1.4rem;
    border-bottom: 1px solid var(--hair);
  }
  .olfactory h2, .service h2 { font-size: clamp(1.6rem, 5.8vw, 2.35rem); margin: 0; }
  #aroma-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  #aroma-list button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    gap: .12rem;
    padding: .3rem .2rem .48rem;
    border: 1px solid #e1d5c6;
    border-radius: .45rem;
    color: #5c3e48;
    font: 550 .85rem/1.2 var(--reading);
    background: #f7f0e7;
  }
  #aroma-list button[aria-pressed=true] { border-color: var(--wine); background: #f2e4e7; }
  #aroma-list button i { width: clamp(34px, 8.4vw, 46px); height: auto; aspect-ratio: 1; flex: none; }
  .catalog-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1.7rem 0 .65rem; }
  .catalog-head h2 { font-size: clamp(2.45rem, 8.8vw, 3.6rem); line-height: 1; }
  .filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .filters input, .filters select {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: 44px;
    border: 1px solid #cdbbb1;
    border-radius: .4rem;
    padding: .65rem .7rem;
    background-color: #fffdf9;
    color: var(--ink);
    font-size: 1rem;
  }
  .filters input { grid-column: 1 / -1; }
  .filters select {
    appearance: none;
    padding-right: 1.8rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%),
                      linear-gradient(135deg, var(--wine) 50%, transparent 50%);
    background-size: 5px 5px;
    background-repeat: no-repeat;
    background-position: calc(100% - 14px) center, calc(100% - 9px) center;
  }
  .filter-row { display: grid; gap: .37rem; padding: 0 0 .8rem; border: 0; }
  .groups { display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
  .groups button {
    min-height: 44px;
    padding: .4rem clamp(8px, 2.7vw, 20px);
    border-radius: 999px;
    color: #513c46;
    font-size: .88rem;
  }
  .groups button[aria-pressed=true] { background: #eadce0; box-shadow: none; color: #472b3a; font-weight: 650; }
  .filter-row > div:last-child { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .85rem; }
  #aromaChip, #clear { min-height: 44px; margin: 0; }
  #count { font-variant-numeric: tabular-nums; }

  .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem clamp(10px, 3.6vw, 24px); }
  .entry { min-width: 0; padding: 0; }
  .entry .product { padding: 0; }
  .product .photo {
    height: auto;
    aspect-ratio: 1 / 1.15;
    border: 1px solid #e9dfd2;
    border-radius: 42% 42% .4rem .4rem / 15% 15% .4rem .4rem;
    background: radial-gradient(ellipse at 52% 87%, #e8d7c6 0, #f4ece0 47%, #f8f2e8 86%);
  }
  .product .photo img { height: 81%; width: 85%; bottom: 9%; }
  .product .meta {
    display: flex;
    flex-wrap: wrap;
    gap: .12rem .4rem;
    margin-top: .75rem;
    font-size: .75rem;
    line-height: 1.35;
    letter-spacing: .055em;
  }
  .product .meta span:last-child:not(:empty) { color: #713746; }
  .product h3 {
    margin: .23rem 0;
    font: 500 clamp(1.25rem, 5.2vw, 1.7rem)/1.12 var(--display);
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
  .product .scent { margin: 0; font-size: .88rem; line-height: 1.42; color: #635259; }
  .product-foot { flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
  .product-foot span { font-size: .8rem; }
  .product-foot b { font-size: 1.02rem; }
  .card-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: .7rem; }
  .card-actions .order-card { min-height: 44px; padding: .55rem .25rem; width: 100%; font-size: .86rem; }
  .card-actions .pick { width: 100%; min-height: 44px; padding: .4rem; text-underline-offset: .2rem; font-size: .85rem; }
  .service { margin-top: 2rem; padding: 1.55rem 0; }
  .service details { padding: 0; }
  .service summary { padding: .8rem 0; }
  .service details p { margin: 0 0 .9rem; }
  footer { margin-top: 1.2rem; padding-block: 1.5rem; }
  body:has(#compareBar:not([hidden])) footer { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }

  #compareBar {
    bottom: calc(.6rem + env(safe-area-inset-bottom));
    max-width: calc(100vw - 20px);
    gap: .5rem;
    padding: .2rem .25rem .2rem .9rem;
    white-space: nowrap;
    box-shadow: 0 6px 24px #3e213638;
  }
  #compareBar button, #closeCompare { min-width: 44px; min-height: 44px; }
  #comparison { width: min(96vw, 690px); max-height: 89dvh; padding: 0; border-radius: 1.2rem; overflow-x: hidden; }
  #comparison .compare-heading { min-height: 62px; padding-inline: 52px; }
  #comparison #compareTitle img { display: block; width: min(200px, 100%); height: auto; }
  #compareItems {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(128px, 44%), 1fr);
    gap: 0 .7rem;
    padding: .7rem .8rem 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: .8rem;
    scrollbar-color: #a68d97 #f6eee5;
  }
  #compareItems article { scroll-snap-align: start; min-width: 0; }
  #compareItems .compare-stage { height: clamp(92px, 24vw, 140px); }
  #compareItems h3 { font: 500 clamp(1.05rem, 4.2vw, 1.5rem)/1.15 var(--display); }
  #compareItems .compare-brand, #compareItems dt { font-size: .75rem; line-height: 1.4; }
  #compareItems dd, #compareItems dl > div:first-child dd { font: 400 .9rem/1.45 var(--reading); }
  #compareItems .cmp-line { height: 7px; margin: .5rem 2px; }
  #compareItems .cmp-cycle::after { width: 11px; height: 11px; }
  #compareItems article > a { min-height: 44px; display: inline-flex; align-items:center; }
  #compareItems .cmp-order { min-height: 44px; font: 600 .88rem/1.3 var(--reading); }
}
@media (min-width: 560px) and (max-width: 767px) {
  #aroma-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.navlinks .contact::before{content:"";display:inline-block;width:1.1em;height:1.1em;vertical-align:-.18em;margin-inline-end:.32em;background:url(img/acciones.webp) 66.66666666666667% 0%/400% 400% no-repeat;mix-blend-mode:multiply;border-radius:3px}
.delivery-nav::before{content:"";display:inline-block;width:1.1em;height:1.1em;vertical-align:-.18em;margin-inline-end:.32em;background:url(img/acciones.webp) 100% 0%/400% 400% no-repeat;mix-blend-mode:multiply;border-radius:3px}
.pick::before{content:"";display:inline-block;width:1.1em;height:1.1em;vertical-align:-.18em;margin-inline-end:.32em;background:url(img/acciones.webp) 33.333333333333336% 0%/400% 400% no-repeat;mix-blend-mode:multiply;border-radius:3px}
.navlinks a[href="#coleccion"]::before{content:"";display:inline-block;width:1.1em;height:1.1em;vertical-align:-.18em;margin-inline-end:.32em;background:url(img/acciones.webp) 33.333333333333336% 100%/400% 400% no-repeat;mix-blend-mode:multiply;border-radius:3px}
