/* Vista previa de Vella Perfumería — mismos colores y tipografías que la tienda. */
:root {
  --ink: #34241a;
  --ink-soft: #4a3628;
  --topo: #b8aa9a;
  --taupe: #8b664c;
  --gold: #bda36f;
  --gold-light: #e3c68e;
  --gold-dark: #8a7148;
  --ivory: #faf4ec;
  --champagne: #f7e3d0;
  --line: #e7e0d8;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 18px; } /* base 18px: todas las letras 2 puntos más grandes */
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.container { width: 100%; max-width: 96rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: #fff; padding: .5rem 1rem; }
.taupe { color: var(--taupe); }
.bg-vella { background: linear-gradient(135deg, #fdf4ec 0%, #f8e6d6 50%, #ecd0b8 100%); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }


/* Header */
.header { position: sticky; top: 0; z-index: 30; box-shadow: 0 1px 2px rgba(52,36,26,.08); }
.header__top { border-bottom: 1px solid rgba(189,163,111,.3); }
.header__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; padding-top: .75rem; padding-bottom: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; min-height: 2.5rem; text-decoration: none; } /* misma altura que el ícono del carrito de la tienda */
.brand img { height: 2.25rem; width: auto; }
.brand span { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: .18em; }
.search { display: flex; order: 3; width: 100%; }
@media (min-width: 768px) { .search { order: 0; width: auto; flex: 1; max-width: 36rem; } }
.search input { flex: 1; min-width: 0; border: 1px solid rgba(189,163,111,.45); border-right: 0; border-radius: 999px 0 0 999px; background: #fff; padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; }
.search input:focus { outline: none; border-color: var(--gold); }
.search button { border: 0; background: var(--gold); border-radius: 0 999px 999px 0; padding: 0 1rem; cursor: pointer; display: flex; align-items: center; }
.search button:hover { background: var(--gold-light); }
.search svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0 auto; overflow-x: auto; white-space: nowrap; font-size: .875rem; line-height: 1.25rem; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav li:last-child { padding-right: 2rem; }
@media (min-width: 1024px) { .catnav ul { justify-content: space-between; gap: 1.5rem; -webkit-mask-image: none; mask-image: none; } .catnav li:last-child { padding-right: 0; } }
.catnav a { display: inline-block; padding: .75rem 0; text-decoration: none; color: #57534e; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--ink); border-color: rgba(189,163,111,.5); }
.catnav a[aria-current="page"] { color: var(--ink); font-weight: 500; border-color: var(--gold); }

/* Portada */
.hero__grid { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; max-width: 48rem; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 768px) { .hero__grid { padding-top: 5rem; padding-bottom: 5rem; } }
.kicker { font-size: .75rem; line-height: 1rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-dark); margin: 0; }
.hero h1 { margin: 0; }
.hero__logo { width: 14rem; height: auto; margin: 0 auto; }
@media (min-width: 640px) { .hero__logo { width: 18rem; } }
.hero__lead { font-family: var(--serif); font-size: 1.5rem; line-height: 1.375; color: var(--ink); margin: 0; }
@media (min-width: 640px) { .hero__lead { font-size: 1.875rem; line-height: 2.25rem; } }
.hero__text2 { max-width: 42rem; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); margin: 0; }
@media (min-width: 640px) { .hero__text2 { font-size: 1.125rem; } }
.hero__tag { font-size: .875rem; line-height: 1.25rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin: 0; }
@media (min-width: 640px) { .hero__tag { letter-spacing: .2em; } }
.btns { justify-content: center; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border: 0; cursor: pointer; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line { border: 1px solid rgba(52,36,26,.4); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); background: rgba(255,255,255,.5); }
.btn--ink { background: var(--ink); color: #fdf4ec; }
.btn--ink:hover { background: #292524; }
.btn--wa { width: 100%; border: 2px solid var(--wa); color: var(--wa-dark); background: #fff; text-transform: none; letter-spacing: 0; font-size: .95rem; }
.btn--wa:hover { background: rgba(37,211,102,.08); }
.btn--wa svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

.cats { display: grid; gap: 1rem; list-style: none; padding: 4rem 0 0; margin: 0; }
@media (min-width: 640px) { .cats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cats a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem; background: #fff; border: 1px solid rgba(189,163,111,.3); border-radius: .5rem; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.cats a:hover { border-color: var(--gold); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cats strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 2rem; }
.cats span { font-size: .875rem; line-height: 1.25rem; color: #57534e; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 4rem 0 2rem; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 1.875rem; line-height: 2.25rem; margin: 0; }
.section-head a { font-size: .875rem; font-weight: 500; color: var(--gold-dark); text-decoration: none; text-underline-offset: 4px; }
.section-head a:hover { text-decoration: underline; }
.home-latest { padding-bottom: 4rem; }
.story { border-top: 1px solid rgba(189,163,111,.2); background: #fff; text-align: center; padding: 4rem 1rem; }
.story p.quote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.625; max-width: 48rem; margin: 1rem auto; }
.story p.taupe { font-size: .875rem; color: #57534e; max-width: 48rem; margin: 1rem auto 0; }

/* Catálogo */
.crumbs-nav { padding: 1rem 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: .375rem; list-style: none; padding: 0; margin: 0; font-size: .875rem; line-height: 1.25rem; color: #78716c; }
.product-page { padding-top: 2.5rem; }
.product-page .crumbs-nav { padding: 0; margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .here { color: var(--ink); font-weight: 500; }
.banner { border: 1px solid rgba(189,163,111,.3); border-radius: .75rem; overflow: hidden; }
.banner__grid { display: grid; align-items: center; gap: 1.5rem; padding: 2.5rem 1.5rem; text-align: center; }
@media (min-width: 768px) { .banner__grid { grid-template-columns: 1fr auto; text-align: left; padding: 3rem 2.5rem; } }
.banner h1 { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: .025em; margin: .75rem 0 0; }
@media (min-width: 640px) { .banner h1 { font-size: 3rem; line-height: 1; } }
.banner p.desc { color: var(--taupe); font-size: .875rem; line-height: 1.25rem; max-width: 36rem; margin: .75rem auto 0; }
@media (min-width: 768px) { .banner p.desc { margin-left: 0; } }
.banner__mono { display: none; height: 7rem; width: auto; }
@media (min-width: 768px) { .banner__mono { display: block; } }
.banner__line { height: 4px; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark)); }
.shortcuts { display: flex; gap: .75rem; overflow-x: auto; margin-top: 1.25rem; padding: .75rem; border-radius: .75rem; background: rgba(247,227,208,.6); scrollbar-width: none; }
@media (min-width: 640px) { .shortcuts { padding: 1rem; } }
.shortcuts::-webkit-scrollbar { display: none; }
.shortcuts a { flex-shrink: 0; border: 1px solid rgba(52,36,26,.7); background: #fff; padding: .5rem .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; text-decoration: none; }
.shortcuts a:hover, .shortcuts a[aria-current="true"] { background: var(--ink); color: #fdf4ec; border-color: var(--ink); }

.layout { display: grid; gap: 1.5rem; margin-top: 1.5rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .layout { grid-template-columns: 260px 1fr; } }
.filters-title { display: none; align-items: center; gap: .5rem; font-size: 1.125rem; line-height: 1.75rem; margin: 0 0 .75rem; }
@media (min-width: 1024px) { .filters-title { display: flex; } }
.filters-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 1px solid #d6d3d1; background: #fff; border-radius: .5rem; padding: .625rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; cursor: pointer; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
.panel { display: none; margin-top: .75rem; background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1.25rem; }
.panel.open { display: block; }
@media (min-width: 1024px) { .panel { display: block; margin-top: 0; } }
.panel fieldset { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 1rem 0; }
.panel fieldset:first-of-type { padding-top: 0; }
.panel fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.panel legend { float: left; width: 100%; font-size: .875rem; line-height: 1.25rem; font-weight: 600; padding: 0; margin-bottom: .5rem; }
.panel legend + * { clear: both; }
.opt { display: flex; align-items: center; gap: .6rem; padding: .25rem 0; font-size: .875rem; color: #44403c; cursor: pointer; }
.opt input { width: 1rem; height: 1rem; accent-color: var(--ink); }
.opt span:nth-child(2) { flex: 1; }
.opt .count { font-size: .75rem; color: #a8a29e; }
.brand-search { width: 100%; border: 1px solid #d6d3d1; border-radius: .4rem; padding: .5rem .75rem; font-size: .875rem; margin-bottom: .5rem; }
.linkish { background: none; border: 0; padding: 0; margin-top: .25rem; color: var(--gold-dark); font-size: .875rem; font-weight: 500; cursor: pointer; }
.linkish:hover { text-decoration: underline; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.toolbar .count { font-size: 1.125rem; line-height: 1.75rem; margin: 0; }
.sort { display: flex; align-items: center; gap: .5rem; border: 1px solid #d6d3d1; background: #fff; border-radius: .5rem; padding: .5rem .75rem; font-size: .875rem; }
.sort span { color: #78716c; }
.sort select { border: 0; background: transparent; font-weight: 500; }
.sort select:focus { outline: none; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid rgba(189,163,111,.5); background: #fff; border-radius: 999px; padding: .25rem .75rem; font-size: .875rem; cursor: pointer; }
.chip:hover { border-color: var(--ink); }

.grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .grid--wide { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #e7e5e4; border-radius: .75rem; overflow: hidden; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: rgba(189,163,111,.5); box-shadow: 0 10px 20px -8px rgba(52,36,26,.18); }
.card__img { position: relative; aspect-ratio: 1; border-bottom: 1px solid #f5f5f4; background: #fff; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .3s; }
.card:hover .card__img img { transform: scale(1.05); }
.badge { position: absolute; left: .5rem; top: .5rem; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 500; border-radius: .25rem; padding: .1rem .5rem; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: .25rem; padding: 1rem; }
.card__brand { font-size: 13px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: #78716c; margin: 0; }
.card__title { font-size: .875rem; font-weight: 600; line-height: 1.375; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { text-decoration: underline; }
.card__gender { font-size: .75rem; line-height: 1rem; color: #78716c; margin: 0; }
.card__price { margin: auto 0 0; padding-top: .5rem; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.empty { border: 1px dashed rgba(189,163,111,.5); background: #fff; border-radius: .75rem; padding: 4rem 1.5rem; text-align: center; }
.empty p { margin: 0 0 .25rem; }

/* Producto */
.product { display: grid; gap: 2.5rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .product { grid-template-columns: 1fr 1fr; } }
.gallery__main { aspect-ratio: 1; background: #fff; border: 1px solid #e7e5e4; border-radius: .75rem; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin-top: .75rem; list-style: none; padding: 0; }
.thumbs button { display: block; width: 100%; aspect-ratio: 1; padding: .25rem; background: #fff; border: 2px solid transparent; border-radius: .4rem; cursor: pointer; }
.thumbs button[aria-pressed="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__brand { font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); margin: 0; line-height: 1rem; }
.product h1 { font-family: var(--serif); font-weight: 500; font-size: 2.25rem; line-height: 1.25; margin: .25rem 0 0; }
.product__desc { color: #57534e; line-height: 1.625; margin: 1rem 0 0; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.5rem; margin: 1.5rem 0 0; padding: 1rem; background: #fff; border: 1px solid #e7e5e4; border-radius: .75rem; font-size: .875rem; line-height: 1.25rem; }
.details dt { color: #78716c; }
.details dd { margin: 0; }
.product__price { font-size: 1.875rem; line-height: 2.25rem; font-weight: 600; margin: 2rem 0 1.5rem; }
.product__note { font-size: .8rem; color: #78716c; margin-top: .75rem; }

/* Footer y WhatsApp */
.footer { border-top: 1px solid rgba(189,163,111,.3); color: rgba(52,36,26,.85); font-size: .9rem; }
.footer__grid { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer__logo { height: 6rem; width: auto; }
.footer__title { font-family: var(--serif); font-size: 1.2rem; color: var(--gold-dark); margin: 0 0 .5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--gold-dark); }
.footer__copy { border-top: 1px solid rgba(189,163,111,.3); text-align: center; font-size: .75rem; color: var(--taupe); padding: 1rem; margin: 0; }
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); transition: transform .2s; }
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* Cinta de marcas: bucle continuo con bordes difuminados, igual que en la tienda. */
.brands { padding-top: 3rem; text-align: center; }
@keyframes vella-marquee { to { transform: translateX(-50%); } }
.brand-marquee { overflow: hidden; margin-top: 1rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee__track { display: flex; width: max-content; animation: vella-marquee var(--marquee-duration, 40s) linear infinite; }
.brand-marquee:hover .brand-marquee__track, .brand-marquee:focus-within .brand-marquee__track, .brand-marquee:active .brand-marquee__track { animation-play-state: paused; }
.brand-marquee ul { display: flex; flex-shrink: 0; gap: .75rem; padding: 0 .75rem 0 0; margin: 0; list-style: none; }
.brand-marquee a { display: inline-flex; white-space: nowrap; border-radius: 9999px; border: 1px solid rgb(189 163 111 / .3); background: rgb(255 255 255 / .7); padding: .375rem 1rem; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: rgb(52 36 26 / .75); text-decoration: none; transition: border-color .2s, color .2s; }
.brand-marquee a:hover { border-color: var(--gold); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
  .brand-marquee__track { animation: none; }
  .brand-marquee [data-clone] { display: none; }
}

/* Etiqueta «Nuevo»: discreta y elegante, en la esquina opuesta a «Set de regalo». */
.badge-new { position: absolute; right: .5rem; top: .5rem; display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem .2rem .55rem; border: 1px solid var(--gold); border-radius: 999px; background: rgb(250 244 236 / .92); color: var(--gold-dark); font-family: var(--serif); font-style: italic; font-size: .85rem; font-weight: 600; letter-spacing: .06em; line-height: 1.2; box-shadow: 0 2px 8px -3px rgb(138 113 72 / .35); }
.badge-new span { font-style: normal; font-size: .65rem; color: var(--gold); }

/* Perfil olfativo de la ficha (como la tienda): título dorado y la misma caja de detalles. */
.profile { margin-top: 1.5rem; }
.profile__title { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); }
.profile .details { margin-top: .5rem; }

/* Banner de temporada (como el de la tienda, tema crema → champán), arriba de la portada. */
.promo { border-bottom: 1px solid rgb(189 163 111 / .25); }
.promo__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; text-align: center; }
@media (min-width: 640px) { .promo__inner { flex-direction: row; gap: 1.5rem; text-align: left; } }
.promo__text { flex: 1; min-width: 0; }
.promo__title { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; line-height: 1.25; color: var(--ink); }
@media (min-width: 640px) { .promo__title { font-size: 1.875rem; } }
.promo__body { margin: .25rem 0 0; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }
@media (min-width: 640px) { .promo__body { font-size: 1rem; } }
.promo__cta { flex-shrink: 0; }
.promo__cta:hover { background: var(--gold-light); }

/* Familia olfativa en la tarjeta: una línea, en dorado e itálica, para anticipar las notas. */
.card__family { margin: .15rem 0 0; font-family: var(--serif); font-style: italic; font-size: .95rem; line-height: 1.3; color: var(--gold-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* En tarjetas angostas, «Nuevo» baja a la esquina inferior para no chocar con «Set de regalo». */
@media (max-width: 639px) { .badge-new { top: auto; bottom: .5rem; } }
