
/* VÉLIA SKIN — Cambia aquí colores y tipografías */
:root{--ink:#24352b;--muted:#777b72;--paper:#f8f7f3;--white:#fff;--sage:#dfe7db;--deep:#283a2d;--line:#e4e3dc;--ease-out:cubic-bezier(.22,1,.36,1);--ease-letter:cubic-bezier(.16,1,.3,1);--velia-motion:var(--ease-out);--serif:'Playfair Display',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--sans);font-size:14px;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}img{max-width:100%}p{line-height:1.8}.svg-icons{position:absolute;width:0;height:0;overflow:hidden}.container{width:min(1280px,calc(100% - 96px));margin:auto}.section{padding:clamp(72px,9vw,136px) 0}.eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:10px;font-weight:700;letter-spacing:2.6px;text-transform:uppercase}.line{display:inline-block;width:21px;height:1px;background:currentColor}h1,h2,h3,p{margin-top:0}h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-1.8px}h1 em,h2 em{color:#798f7d;font-weight:400}h2{font-size:clamp(34px,4vw,57px);line-height:1.22;margin:17px 0 0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:22px;padding:17px 24px;border:1px solid var(--deep);font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;transition:background .2s,color .2s,transform .2s}.btn:hover{transform:translateY(-2px)}.btn svg{width:18px;height:18px}.btn-dark{background:var(--deep);color:#fff}.btn-dark:hover{background:#465f4c}.btn-outline{background:transparent;color:var(--deep)}.btn-outline:hover{background:var(--deep);color:#fff}.icon-button{width:38px;height:38px;padding:7px;border:0;background:transparent;color:inherit;display:grid;place-items:center}.icon-button:hover{color:#879d87}.icon-button:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #6e9479;outline-offset:4px}

/* Encabezado */
.announcement{min-height:27px;background:#6b816d;color:white;display:flex;align-items:center;justify-content:center;text-align:center;font-size:9px;letter-spacing:2.2px;padding:7px 12px}
.brand{display:inline-flex;align-items:center;gap:10px;line-height:1;white-space:nowrap}
.brand-mark{display:block;width:42px;height:42px;flex:none}
.brand-type{display:flex;flex-direction:column}
.footer-brand .brand-mark{outline:1px solid #a5b29c;outline-offset:-1px;border-radius:8px}
@media(max-width:760px){.brand{gap:7px}.brand-mark{width:32px;height:32px}}
.brand strong{font-family:var(--serif);font-size:31px;font-weight:400;letter-spacing:2.1px}
.brand strong span{color:#8ba08a}
.brand small{font-size:8px;letter-spacing:3px;margin-top:6px}
.desktop-nav{display:flex;gap:36px;margin:auto}
.desktop-nav a{font-size:12px;transition:color .2s}
.desktop-nav a:hover{color:#819a87}
.nav-tools{display:flex;gap:7px;align-items:center}
#favoritesBtn.is-on{color:#789278}
.mobile-menu-button{display:none}
.mobile-nav{display:flex;flex-direction:column;padding:13px 25px 22px;border-top:1px solid var(--line);gap:16px}
.mobile-nav[hidden],.search-bar[hidden]{display:none}
.mobile-nav a{padding:5px}
.search-bar{border-top:1px solid var(--line);background:white}
.search-inner{display:flex;gap:14px;align-items:center;padding:12px 0}
.search-inner input{flex:1;border:0;outline:none;padding:12px;font-size:14px;color:var(--ink)}
.search-icon{width:19px}

/* Portada */
.text-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:12px;font-weight:600}
.text-link svg,.circle-arrow svg{width:15px;height:15px}
.text-link:hover{text-decoration:underline}
/* Secciones */
.peach{background:#eee1d7}
.sage{background:#e0e7de}
.sand{background:#ebe5dd}
.collection-index{font-size:10px;letter-spacing:1.8px}
.collection-end{display:flex;align-items:center;justify-content:space-between}
.collection-end strong{font-family:var(--serif);font-size:22px;font-weight:400;display:block}
.collection-end small{font-size:11px;color:#7d8077;margin-top:5px;display:block}
.circle-arrow{width:35px;height:35px;display:grid;place-items:center;border:1px solid #9baca0;border-radius:50%;font-size:18px}

/* Catálogo */
.filter-list{display:flex;flex-wrap:wrap;gap:7px}
.empty-results{grid-column:1/-1;padding:70px 20px;text-align:center;background:#faf9f6;color:#6b736b}

/* Ritual de cuidado */
.ritual{display:grid;grid-template-columns:1fr 1fr;min-height:555px}
.ritual-copy{background:#e8ebe4;display:flex;flex-direction:column;justify-content:center;align-items:start;padding:65px clamp(40px,8vw,125px)}
.ritual-copy h2{font-size:clamp(37px,3.6vw,56px)}
.ritual-copy>p{max-width:450px;color:#687468;margin:22px 0 30px}
.steps{display:grid;grid-template-columns:repeat(3,1fr);width:100%;margin-bottom:34px;gap:13px}
.steps>div{border-top:1px solid #bac9b9;padding-top:12px}
.steps span,.steps strong,.steps small{display:block}
.steps span{font-size:10px}
.steps strong{font-family:var(--serif);font-size:22px;margin-top:8px;font-weight:400}
.steps small{font-size:10px;color:#79847b;margin-top:5px}
.about-grid,.faq-grid,.newsletter-grid{display:grid;grid-template-columns:1fr 1fr;gap:12%}
.signature{font-family:var(--serif);font-size:23px;color:#8c9c89}

/* Preguntas frecuentes */
.faq{background:#f2f3ee}
.faq-grid>div>p{color:#8a8b84}
.faq-items{padding-top:8px}
.faq-items details{border-bottom:1px solid #d5dbd3}
.faq-items summary{padding:21px 25px 21px 0;cursor:pointer;font-size:13px;font-weight:600;list-style:none;position:relative}
.faq-items summary::-webkit-details-marker{display:none}
.faq-items summary:after{content:'+';font-size:20px;font-weight:400;position:absolute;right:2px;top:15px}
.faq-items details[open] summary:after{content:'−'}
.faq-items details p{color:#6c786d;padding-right:28px;margin:0 0 19px}

/* Suscripción */
.newsletter{background:#dce5da;padding:68px 0}
.newsletter-grid{align-items:center}
.newsletter h2{font-size:clamp(29px,3.2vw,46px)}
.newsletter p{color:#727e73}
.newsletter form label{font-size:10px;letter-spacing:1.5px}
.email-field{display:flex;border-bottom:1px solid #7c9380;margin-top:10px}
.email-field input{border:0;background:transparent;min-width:0;flex:1;padding:14px 0;outline:none}
.email-field button{border:0;background:var(--deep);color:white;padding:9px 12px}
.newsletter form small{display:block;font-size:10px;margin-top:8px;color:#748274}

/* Pie de página */
.footer{background:#26382b;color:#f5f7f1;padding:70px 0 24px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer-brand strong{font-size:35px}
.footer-brand small{font-size:8px}
.footer-grid p{max-width:280px;color:#a6b5a5;font-size:12px}
.footer-grid h3{font-size:10px;letter-spacing:1.6px;margin:5px 0 23px}
.footer-grid a:not(.brand),.footer-grid span:not(.brand span){display:block;margin-bottom:14px;font-size:12px;color:#c7d1c6}
.footer-grid .footer-contact a{display:flex;align-items:center;gap:10px}
.footer-contact .contact-icon{width:17px;height:17px;flex:none;color:inherit}
.footer-grid .footer-contact a span{display:inline;margin:0;color:inherit;font-size:inherit;overflow-wrap:anywhere}
.footer-grid a:hover{text-decoration:underline}
.footer-bottom{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #536557;margin-top:70px;padding-top:20px;color:#abb9ad;font-size:10px;letter-spacing:.7px}

/* Notificaciones */
.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:#273b2e;color:white;padding:13px 25px;font-size:12px;z-index:95;pointer-events:none;opacity:0;transition:.25s;text-align:center;max-width:calc(100vw - 30px)}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* Adaptación a tablets */
@media(max-width:1050px){
.container{width:min(100% - 56px,1280px)}
.desktop-nav{gap:19px}
.ritual-copy{padding:45px}
.footer-grid{gap:22px}
}

/* Adaptación a celulares */
@media(max-width:760px){
.container{width:calc(100% - 36px)}
.section{padding:70px 0}
.mobile-menu-button{display:grid}
.desktop-nav{display:none}
.brand strong{font-size:26px}
.brand small{font-size:6px}
.nav-tools{gap:0}
.nav-tools .icon-button,.mobile-menu-button{width:44px;height:44px}
.ritual{grid-template-columns:1fr}
.ritual-copy{padding:65px 25px}
.about-grid,.faq-grid,.newsletter-grid{grid-template-columns:1fr;gap:26px}
.footer-grid{grid-template-columns:repeat(2,1fr);gap:32px}
.footer-grid>div:first-child{grid-column:1/-1}
.footer-bottom{flex-direction:column;margin-top:40px}
}
@media(max-width:390px){
.footer-grid{gap:18px}
}
@media(prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* Portada y navegación */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #f8f7f3;
  border-bottom: 1px solid #e8e4dc;
  transition: background-color .28s ease, border-color .28s ease;
}

@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .header {
    -webkit-backdrop-filter: blur(0) saturate(100%);
    backdrop-filter: blur(0) saturate(100%);
  }
  .header.is-scrolled {
    background-color: rgba(248, 247, 243, .8);
    border-color: rgba(94, 109, 95, .15);
    -webkit-backdrop-filter: blur(16px) saturate(115%);
    backdrop-filter: blur(16px) saturate(115%);
  }
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2.8vw, 35px);
}

.hero {
  overflow: hidden;
  background: linear-gradient(110deg, #f8f6f0 22%, #eee6d9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(26px, 5vw, 84px);
  padding-block: clamp(34px, 5vw, 76px);
}

.hero-copy {
  padding-block: 24px;
}

.hero-copy h1 {
  margin: 22px 0 24px;
  font-size: clamp(44px, 5.25vw, 84px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.hero-copy p {
  max-width: 34ch;
  margin-bottom: 0;
  color: #62695f;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-top: clamp(24px, 4vw, 40px);
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  aspect-ratio: 1 / 1.04;
  background: #e7dbc7;
  border: 1px solid #fffdf4;
  outline: 1px solid #dfd4c3;
  outline-offset: 7px;
  box-shadow: 0 16px 47px #59443112;
}

.hero-photo,
.ritual-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo {
  object-position: 53% 50%;
}

/* Secciones editoriales */
.benefits {
  background: #e6ebe2;
  border-bottom: 1px solid #d6ded3;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 70px;
  align-items: center;
  text-align: center;
}

.benefits-grid span {
  padding: 8px 14px;
  font-size: 10px;
  letter-spacing: .14em;
}

.benefits-grid span + span {
  border-left: 1px solid #c1cdbf;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 56px);
}

.section-header p {
  max-width: 32ch;
  margin: 0 0 4px;
  color: #62695f;
}

h2 {
  line-height: 1.13;
  letter-spacing: -.035em;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}

.collection-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 300px;
  aspect-ratio: 1 / 1.04;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid #534c4317;
  color: var(--ink);
  text-align: left;
  transition: transform .36s var(--ease-out);
}

.collection-decoration {
  isolation: isolate;
  position: relative;
  display: grid;
  flex: 1;
  min-height: 110px;
  place-items: center;
}

.collection-decoration::before {
  content: '';
  position: absolute;
  width: min(80%, 210px);
  aspect-ratio: 1;
  z-index: -1;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
}

.collection-decoration img {
  position: absolute;
  width: min(84%, 242px);
  height: 92%;
  object-fit: contain;
}

[data-collection="cuidado"] .collection-decoration { container-type: size; }
[data-collection="cuidado"] .collection-decoration::before {
  width: min(80cqw, 96cqh, 210px);
}

/* La máscara sigue la foto en las tres vistas, incluso con object-fit: contain y zoom. */
img[src$="/oli-sol-calma.jpg"] {
  --sol-calma-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1080' height='1080' viewBox='0 0 1080 1080'%3E%3Cpath fill='white' d='M381 258 Q420 235 499 242 C542 244 555 251 579 241 L592 236 Q598 235 600 245 Q603 255 596 257 L583 261 V325 L598 327 Q602 328 604 337 Q614 339 614 351 L616 423 Q616 427 608 429 L608 432 C633 445 651 468 652 500 L653 906 Q653 941 629 950 C599 963 504 964 468 947 Q456 954 446 954 H366 A32 32 0 0 1 366 890 H444 L445 502 C446 469 458 446 490 431 L490 428 Q481 427 482 422 L485 349 Q485 342 493 338 Q495 327 503 327 L516 327 V268 C461 261 429 266 399 275 Q390 276 387 269 Z'%2F%3E%3C%2Fsvg%3E");
  -webkit-mask: var(--sol-calma-mask) center / contain no-repeat;
  mask: var(--sol-calma-mask) center / contain no-repeat;
}

.collection-end {
  gap: 10px;
}

.collection-end small {
  color: #566055;
}

.circle-arrow {
  flex-shrink: 0;
}

.ritual-art {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #e7eaf1;
}

.ritual-art img {
  object-fit: contain;
}

/* Catálogo y enlaces de compra */
.products {
  background: #fcfbf8;
  border-block: 1px solid #e9e4db;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 16px;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: 9px 14px;
  min-height: 40px;
  border: 1px solid #d6dcd3;
  border-radius: 50px;
  background: transparent;
  color: #526156;
  font-size: 11px;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.filter.active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.filter:not(.active):hover {
  background: #e8ede6;
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c675e;
  white-space: nowrap;
  font-size: 12px;
}

.sort-label select {
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--deep);
}

.product-grid {
  display: grid;
  --columns: 4;
  --gap: clamp(12px, 1.8vw, 24px);
  --track: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns));
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  grid-template-columns: repeat(var(--columns), round(down, var(--track), 1px));
  justify-content: center;
  gap: var(--gap);
}

.product-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #e6dfd4;
  border-radius: 3px;
  background: #fffefb;
  transition: transform .42s var(--ease-out), border-color .3s ease;
}

.product-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  box-shadow: 0 18px 36px #60462924;
  opacity: .16;
  transition: opacity .4s ease;
}

.product-image {
  position: relative;
  isolation: isolate;
  width: 100%;
  flex: none;
  min-height: 0;
  aspect-ratio: 1 / 1.13;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--product-bg);
  border-radius: 2px 2px 0 0;
}

.product-image::before {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  z-index: -1;
  content: '';
  border: 1px solid #ffffffac;
  border-radius: 50%;
}

.product-image img {
  position: absolute;
  /* El borde inferior visible se apoya al 75% del alto del recuadro. */
  inset: auto 0 25%;
  margin-inline: auto;
  width: var(--photo-width);
  height: auto;
  aspect-ratio: 1;
  object-position: center bottom;
  translate: 0 calc(100% - var(--bottle-base));
  transform-origin: center var(--bottle-base);
  object-fit: contain;
  transition: transform .55s var(--ease-out);
}

/* Base del envase en el lienzo original, incluido su margen transparente. */
.product-image { --photo-width: 76%; --bottle-base: 92.5%; }
.product-image img[src$="/nida-revive.webp"] { --bottle-base: 91.17%; }
.product-image img[src$="/skin1004-centella.webp"] { --photo-width: 100%; --bottle-base: 83.92%; }
.product-image img[src$="/oli-sol-calma.jpg"] { --photo-width: 83%; --bottle-base: 89%; }

.heart-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #f9f7f1;
  border-radius: 50%;
  color: var(--deep);
  background: #fffef7ec;
  font-size: 20px;
  transition: color .25s ease, background-color .25s ease;
}

.heart-btn.is-liked {
  color: #8a414b;
  background: #fff9f4;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(12px, 1.6vw, 23px);
}

.product-category {
  color: #58675b;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.product-title {
  margin: 7px 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 1.65vw, 25px);
  line-height: 1.22;
}

.product-title button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
}

.product-title button:hover {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 5px;
}

.product-meta small {
  color: #5b645c;
  white-space: nowrap;
}

.product-meta b,
.modal-info .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--deep);
}

.product-meta b {
  font-size: 15px;
}

.product-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin-top: 14px;
}

.purchase-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 46px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 2px;

}

.purchase-button svg {
  flex: 0 0 17px;
  height: 17px;
}

.product-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--deep);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #8a9c8e;
}

.results {
  text-align: center;
  font-size: 12px;
  color: #616d64;
  margin: 24px 0 0;
}

/* Ficha de producto */
html:has(.product-modal[open]) {
  overflow: hidden;
}

.product-modal {
  width: min(860px, calc(100% - 28px));
  max-height: min(90dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: auto;
  background: #fcfaf5;
  border: 1px solid #e9e0d1;
  border-radius: 3px;
  color: var(--ink);
  box-shadow: 0 24px 66px #211e1a40;
}

.product-modal::backdrop {
  background: #1c2921a8;
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 13px;
  right: 13px;
  width: 44px;
  height: 44px;
  background: #fffef7;
  border-radius: 50%;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.modal-art {
  display: grid;
  place-items: center;
  background: var(--product-bg);
}

.modal-art img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.modal-info {
  padding: 68px clamp(24px, 4vw, 45px) 36px;
}

.modal-info h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 3.3vw, 42px);
}

.modal-info .price {
  font-size: 21px;
}

.modal-info p {
  color: #60685f;
  margin: 14px 0;
}

.product-condition {
  display: grid;
  grid-template-columns: 15px 1fr;
  align-items: start;
  gap: 5px 7px;
  margin: 0 0 12px;
  padding: 9px 0 0;
  border-top: 1px solid #dfdfd4;
  color: #425545;
  font-size: .8125rem;
  line-height: 1.45;
}

.product-condition > svg { width: 15px; height: 15px; margin-top: 2px; }
.product-condition strong, .product-condition span { display: block; }
.product-condition strong { font-weight: 600; }
.product-condition .packaging-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #494b41;
  line-height: 1.5;
}

.modal-art { position: relative; }
.product-card > .photo-caption {
  position: absolute;
  z-index: 1;
  inset: auto auto 0 0;
  grid-area: 1 / 1 / 2 / 2;
  max-width: calc(100% - 8px);
  margin: 4px;
  padding: 2px 5px;
  font-size: .625rem;
  line-height: 1.2;
  border: 1px solid #ded4c4;
  border-radius: 12px;
  pointer-events: none;
}

/* Cada fila comparte las alturas de foto, categoría, título, notas, precio y acciones. */
.product-card {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.product-image { grid-area: 1 / 1; }
.product-info {
  display: grid;
  grid-row: 2 / span 5;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.product-info > .product-condition { align-self: start; }
.photo-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 4px 8px;
  color: #4b473a;
  background: #faf7ee;
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
}


.modal-ingredients {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.modal-ingredients h3 { margin: 0 0 10px; font: 400 1.35rem var(--serif); }
.modal-ingredients dl { margin: 0; display: grid; gap: 8px; }
.modal-ingredients dt { font-weight: 600; }
.modal-ingredients dd { margin: 2px 0 0; color: #49564a; line-height: 1.5; }

.modal-info .purchase-button {
  margin-top: 8px;
  width: 100%;
}

/* Composición móvil */
@media (max-width: 920px) {
  .product-grid {
    --columns: 2;
  }

  .hero-art {
    min-height: 370px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    padding-block: 30px 32px;
  }

  .hero-copy {
    padding: 9px 0 14px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 9.7vw, 63px);
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 1.18;
    outline-offset: 4px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    padding-block: 6px;
  }

  .benefits-grid span + span {
    border-left: 0;
    border-top: 1px solid #c1cdbf;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 14px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 260px;
    aspect-ratio: auto;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-title {
    font-size: clamp(16px, 4.35vw, 23px);
  }

  .product-info {
    padding: 12px 10px 8px;
  }

  .heart-btn {
    top: 6px;
    right: 6px;
  }

  .modal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-art img {
    max-height: 37dvh;
  }

  .modal-info {
    padding: 26px 21px;
  }
}

@media (max-width: 390px) {
  .purchase-button {
    gap: 6px;
    font-size: 10px;
    letter-spacing: .06em;
  }

  .product-meta b {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover,
  .collection-card:hover,
  .product-card:hover,
  .product-card:hover .product-image img,
  .purchase-button:active {
    transform: none;
  }

  .purchase-button:hover::after {
    animation: none;
  }
}

@keyframes reveal-in {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

/* Dirección editorial */
.hero {
  background: radial-gradient(ellipse at 78% 22%, #415549, #23352c 66%, #192c23);
  color: #fbf6ed;
}
.hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 5vw, 80px);
}
.hero-copy .eyebrow { color: #d8c4a4; }
.hero-copy h1 { font-size: clamp(38px, 5.35vw, 88px); }
.hero-line { display: block; padding-bottom: .055em; }
.hero-copy h1 em { color: #c1d2bd; }
.hero-copy p { color: #e3e6d9; }
.hero-actions .btn-dark {
  background: #f0e5d1;
  color: #22342a;
  border-color: #f0e5d1;
}
.hero-actions .btn-dark:hover { background: #fff6e6; }
.hero-actions .text-link { color: #ede1cd; }
.hero-art {
  isolation: isolate;
  margin: 0;
  outline-color: #c6aa796e;
  border-color: #dcc5a080;
  box-shadow: 0 28px 65px #07140f5e;
}
.hero-credit {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 32px 20px 15px;
  background: linear-gradient(transparent, #19291bec);
  color: #f8f0df;
  font: 500 11px var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-credit span { display: block; margin-top: 5px; font: 400 20px var(--serif); letter-spacing: 0; text-transform: none; }

.benefits { background: #ece3d2; border-color: #d9cbb5; }
.products {
  background: radial-gradient(ellipse at 8% 0%, #ede2d2, #f8f5ed 50%, #f4f1e8);
}
.products .section-header { border-top: 1px solid #b69a6e; padding-top: 23px; }
.products h2 { font-size: clamp(38px, 5vw, 72px); }
.product-card { border-color: #d7c7b1; border-radius: 0; }
.product-image { border-radius: 0; }
.product-info { border-top: 1px solid #e4d8c8; }
.purchase-button { border-radius: 0; }
.ritual-copy { background: #273d32; color: #fbf6ed; }
.ritual-copy h2 em { color: #bfd0bb; }
.ritual-copy > p, .ritual-copy .steps small { color: #dce2d4; }
.ritual-copy .btn-outline { border-color: #d3bc99; color: #f9efde; }
.ritual-copy .btn-outline:hover { background: #efe3ce; color: #22342a; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .collection-card .circle-arrow { transition: background-color .3s, color .3s; }
  .collection-card:hover .circle-arrow { background: var(--deep); color: #fff; }
}

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(38px, 9.7vw, 66px); }
  .hero-credit { padding: 25px 14px 11px; }
  .hero-credit span { font-size: 17px; }
}

@keyframes editorial-photo {
  from { opacity: .28; transform: scale(1.16) translateX(2%); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Movimiento editorial y progreso de lectura */
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  z-index: 96;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #a47d43, #f2d29b);
  box-shadow: 0 0 8px #d9ae63a6;
  pointer-events: none;
}

.hero {
  background:
    radial-gradient(ellipse at 76% 0%, #bda37246, transparent 54%),
    radial-gradient(ellipse at 12% 85%, #526b5361, transparent 62%),
    #192e25;
}
.hero-art { outline-offset: 9px; }
.hero-copy h1 { letter-spacing: -.055em; line-height: 1.02; }
.hero-copy .eyebrow { letter-spacing: .27em; }
.hero-credit { border-bottom: 2px solid #cdb07b; }
.header {
  transition: background-color .44s var(--velia-motion), border-color .44s var(--velia-motion),
    box-shadow .44s var(--velia-motion), backdrop-filter .44s var(--velia-motion),
    -webkit-backdrop-filter .44s var(--velia-motion);
}
.header.is-scrolled { box-shadow: 0 9px 24px #1e30201a; }

.collections {
  background: radial-gradient(ellipse at 28% 5%, #f8efe1, #f1ede4 70%);
}
.collection-card { box-shadow: 0 12px 23px #4b392013; }
.ritual-copy {
  background: radial-gradient(ellipse at 100% 4%, #52664d, #20362b 74%);
}
.steps > div { border-top-color: #d5b77b99; }
.steps span { color: #e6c991; font-weight: 600; }
.faq { background: radial-gradient(ellipse at 0 0, #e2e9db, #f3f1e9 80%); }
.products .section-header { border-top-color: #b99762; }
.product-card:hover { border-color: #bd985b; }
.product-card::before { box-shadow: 0 26px 45px #55402236; }

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero-photo {
    top: -34px;
    height: calc(100% + 68px);
  }
}

/* Tipografía editorial y detalles de acabado */
.hero-copy h1 {
  font-size: clamp(45px, 6.15vw, 98px);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero-copy p { max-width: 36ch; }
.hero-copy .eyebrow { color: #efdaac; }
.hero-credit { border-color: #dbc998; }

.section h2, .ritual-copy h2 { letter-spacing: -.043em; }
.section-header > div { position: relative; }
.section-header > div::after {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 18px;
  background: #93764e;
  content: '';
}
.product-title { letter-spacing: -.018em; }
.about { background: radial-gradient(ellipse at 86% 18%, #ebdfcd, #faf7ef 66%); }
.story-copy {
  max-width: 56ch;
  border-left: 1px solid #ceb99b;
  padding: 16px 0 8px clamp(18px, 3vw, 42px);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: #465449;
}
.story-copy p { margin: 0 0 1em; line-height: 1.7; }
.about .signature { display: inline-block; color: #536657; }
.ritual-art { background: radial-gradient(ellipse at 52% 42%, #f5ecdf, #e3d3c0); }
.ritual-art img { filter: drop-shadow(0 18px 23px #5d4f3526); }

.desktop-nav a, .mobile-nav a, .text-link, .product-link {
  position: relative;
  text-decoration: none;
}
.desktop-nav a::after, .mobile-nav a::after, .text-link::after, .product-link::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .52s var(--ease-letter);
  pointer-events: none;
  content: '';
}
.text-link::after, .product-link::after { bottom: 6px; }
.product-link::after { left: calc(50% - 22px); right: calc(50% - 22px); transform: scaleX(.65); }
.desktop-nav a { padding-block: 8px; }
.mobile-nav a { width: fit-content; }
.desktop-nav a:is(:hover, :focus-visible)::after,
.mobile-nav a:is(:hover, :focus-visible)::after,
.text-link:is(:hover, :focus-visible)::after,
.product-link:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}
.text-link:hover { text-decoration: none; }

@media (max-width: 760px) {
  .hero-copy h1 { font-size: clamp(44px, 11.8vw, 69px); }
  .story-copy { padding: 0; border-left: 0; }
}

/* Interacciones de movimiento VÉLIA */
.product-card, .collection-card {
  position: relative;
  isolation: isolate;
  transition: transform .5s var(--velia-motion), border-color .3s ease;
}
.product-card::before, .collection-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  pointer-events: none;
  box-shadow: 0 20px 40px rgba(65, 46, 29, .17);
  opacity: 0;
  transition: opacity .45s var(--velia-motion);
}
.product-image img, .collection-decoration img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-actions > a, .purchase-button, .ritual-copy > .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: all .28s ease;
}
.hero-actions > .text-link::after {
  inset: 0 -45%;
  height: auto;
}
.hero-actions > a::after, .purchase-button::after, .ritual-copy > .btn::after {
  position: absolute;
  inset: 0 -45%;
  z-index: -1;
  content: '';
  pointer-events: none;
  background: linear-gradient(112deg, transparent 38%, #fff8df8c 49%, #fff8df26 54%, transparent 66%);
  opacity: 0;
  transform: translateX(-62%);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card:hover, .collection-card:hover { transform: translateY(-8px); }
  .product-card:hover::before, .collection-card:hover::after { opacity: 1; }
  .product-card:hover .product-image img, .collection-card:hover img { transform: scale(1.05); }
  .hero-actions > a:hover, .purchase-button:hover, .ritual-copy > .btn:hover {
    transform: translateY(-2px);
  }
  .purchase-button:hover { background: #3e5946; }
  .hero-actions > a:hover::after, .purchase-button:hover::after, .ritual-copy > .btn:hover::after {
    animation: veliaSheen .85s var(--velia-motion);
  }
}

[data-reveal].is-revealed { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .hero-actions > a:active, .purchase-button:active, .ritual-copy > .btn:active {
    transform: scale(.97);
  }

  .hero-copy > .eyebrow, .hero-copy > p, .hero-actions > a, .hero-credit {
    animation: veliaFadeUp .85s var(--velia-motion) backwards;
  }
  .hero-line {
    letter-spacing: 0;
    animation: veliaTextReveal .85s var(--velia-motion) backwards;
  }
  .hero-copy > .eyebrow, .hero-copy > p { animation-name: veliaTextReveal; }
  .hero-line:nth-child(1) { animation-delay: .14s; }
  .hero-line:nth-child(2) { animation-delay: .25s; }
  .hero-line:nth-child(3) { animation-delay: .36s; }
  .hero-copy > p { animation-delay: .60s; }
  .hero-actions > a:first-child { animation-delay: .74s; }
  .hero-actions > a:nth-child(2) { animation-delay: .86s; }
  .hero-credit { animation-delay: .68s; }
  .hero-photo { animation: editorial-photo 1.2s var(--velia-motion); }

  [data-reveal="surface"].is-visible:not(.is-revealed) {
    animation: veliaFadeUp .85s var(--velia-motion) var(--reveal-delay, 0ms) backwards;
  }
  :is(.hero-line, h2[data-reveal], .product-title) { letter-spacing: 0; }
  [data-reveal="type"].is-visible:not(.is-revealed):is(h2,h3),
  .product-card.is-visible:not(.is-revealed) .product-title,
  .collection-card.is-visible:not(.is-revealed) .collection-end strong {
    animation: veliaTextReveal .85s var(--velia-motion) var(--reveal-delay, 0ms) backwards;
  }
  [data-reveal="type"].is-visible:not(.is-revealed):not(h2,h3) {
    animation: veliaTextReveal .85s var(--velia-motion) var(--reveal-delay, 0ms) backwards;
  }
  .product-modal[open] { animation: veliaFichaEntrada .32s var(--ease-out); }
}

@keyframes veliaTextReveal {
  from { opacity: .62; }
  to { opacity: 1; }
}

@keyframes veliaFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes veliaSheen {
  0% { opacity: 0; transform: translateX(-62%); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translateX(62%); }
}

/* Encuadre de catálogo en PC. La fracción visible descuenta el margen de la foto. */
@media (min-width: 1024px) {
  .product-image {
    --frame-height: clamp(340px, 25vw, 360px);
    --visible-fraction: .85;
    height: var(--frame-height);
    aspect-ratio: auto;
  }
  .product-image::before {
    width: calc(var(--frame-height) * .99);
  }
  .product-image img {
    inset: auto auto 9% 50%;
    width: calc(var(--frame-height) * .81 / var(--visible-fraction));
    max-width: none;
    margin: 0;
    translate: -50% calc(100% - var(--bottle-base));
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.03);
  }
  .product-image img[src$="/nida-revive.webp"] { --visible-fraction: .843; }
  .product-image img[src$="/oli-sol-calma.jpg"] { --visible-fraction: .67; }
  .product-image img[src$="/skin1004-centella.webp"] { --visible-fraction: .62; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card:hover .product-image img { transform: scale(1.06); }
}

.modal-art { align-content: center; min-width: 0; }
.gallery-stage { position: relative; width: 100%; }
.gallery-stage > img { display: block; height: min(48dvh, 480px); object-fit: contain; }
.gallery-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px; }
.gallery-thumbs[hidden], .gallery-thumbs button[hidden] { display: none; }
.gallery-thumbs button { width: 48px; height: 48px; padding: 3px; background: #fffaf3; border: 1px solid #c6bcab; border-radius: 4px; }
.gallery-thumbs button[aria-pressed="true"] { border: 2px solid var(--deep); }
.gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* El marco responde al control que se está usando dentro de la tarjeta. */
.product-card:has(:focus-visible) { border-color: #687f67; }
.gallery-thumbs:has(button[aria-pressed="true"]) button[aria-pressed="false"] {
  background-color: #f3efe6;
}
.gallery-thumbs button, .product-link {
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out),
    background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.purchase-button svg { transition: transform .27s var(--ease-out); }

@keyframes veliaFichaEntrada {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes veliaSeleccion {
  from { opacity: .7; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-thumbs button[aria-pressed="true"] img { animation: veliaSeleccion .24s var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .product-card:has(.product-actions:hover) { border-color: #8a7757; }
  .product-link:hover { color: #284632; background-color: #f3f2e9; }
  .gallery-thumbs button:not([aria-pressed="true"]):hover { border-color: #829078; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .purchase-button:hover svg { transform: translateX(3px); }
  .gallery-thumbs button:hover { transform: translateY(-2px); }
}

/* Tinta editorial: la opacidad y el color conservan la geometría del texto. */
@media (prefers-reduced-motion: no-preference) {
  .product-card.is-visible:not(.is-revealed) :is(.product-category, .product-meta b, .product-meta small),
  .product-modal[open] .modal-info :is(.eyebrow, h2, h3, .price, p, dt, dd),
  .product-modal[open] .product-condition :is(strong, span) {
    animation: veliaTextReveal .48s var(--ease-out);
  }
  .product-title button, .product-meta b, .modal-info .price {
    transition: color .24s var(--ease-out);
  }
}
@media (hover: hover) and (pointer: fine) {
  .product-title button:hover, .product-meta b:hover, .modal-info .price:hover {
    color: #685439;
  }
}

/* La luz recorre la foto de portada una vez, como al abrir una revista. */
.hero-art::after {
  position: absolute;
  inset: 12px;
  border: 1px solid rgb(255 248 225 / 40%);
  content: '';
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art::before {
    position: absolute;
    z-index: 1;
    inset: -20% -32%;
    content: '';
    pointer-events: none;
    background: linear-gradient(106deg, transparent 28%, #fff4d341 44%, #fff6df8a 49%, transparent 61%);
    opacity: 0;
    animation: veliaPortadaLuz 1.35s var(--ease-out) .12s;
  }
  .hero-art::after { animation: veliaTrazo 1s var(--ease-out) .18s backwards; }
  .hero-copy .line { transform-origin: left; animation: veliaLinea .85s var(--ease-out); }
  .product-modal[open]::backdrop { animation: veliaFondoFicha .25s ease-out; }
}

@keyframes veliaPortadaLuz {
  from { transform: translateX(-56%); opacity: .2; }
  30% { opacity: 1; }
  to { transform: translateX(64%); opacity: 0; }
}
@keyframes veliaTrazo {
  from { clip-path: inset(0 100% 100% 0); opacity: .25; }
  to { clip-path: inset(0); opacity: 1; }
}
@keyframes veliaLinea { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes veliaFondoFicha { from { opacity: 0; } to { opacity: 1; } }

.product-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.product-meta .shipping-note { color: #4f7058; font-size: 10px; font-weight: 600; line-height: 1.3; }
.modal-info .modal-shipping { margin: 3px 0 14px; color: #4f7058; font-size: 12px; font-weight: 600; line-height: 1.4; }

/* Política de cambios */
.returns-policy {
  background: #f8f5ee;
  border-top: 1px solid #e4d9c6;
}
.policy-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.policy-heading h2 { max-width: 13ch; }
.policy-deadline {
  display: grid;
  gap: 6px;
  max-width: 275px;
  margin: 0 0 4px;
  padding-left: 19px;
  border-left: 2px solid #b89967;
  color: #566455;
  line-height: 1.5;
}
.policy-deadline strong {
  font: 400 clamp(22px, 2.3vw, 30px) var(--serif);
  color: var(--ink);
}
.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.policy-panel {
  min-width: 0;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #e0d7c8;
  background: #fffefa;
}
.policy-panel:nth-child(2) { background: #edece5; }
.policy-label {
  color: #657762;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}
.policy-panel h3 {
  margin: 16px 0 24px;
  font: 400 clamp(23px, 2.2vw, 32px)/1.2 var(--serif);
  letter-spacing: -.025em;
}
.policy-panel h3 em { color: #758a75; font-weight: 400; }
.policy-panel ul { display: grid; gap: 14px; margin: 0; padding-left: 18px; }
.policy-panel li { padding-left: 5px; color: #49554b; line-height: 1.65; }
.policy-panel li::marker { color: #a58d65; }
.policy-process {
  display: grid;
  grid-template-columns: minmax(130px, .6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 46px);
  margin-top: clamp(20px, 3vw, 34px);
  padding: clamp(24px, 3vw, 38px);
  background: #293b2e;
  color: #f8f4e8;
}
.policy-process .policy-label { color: #dfc69a; }
.policy-process p { margin: 0; line-height: 1.7; }
@media (max-width: 760px) {
  .policy-heading { align-items: start; flex-direction: column; gap: 22px; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-process { grid-template-columns: 1fr; gap: 13px; }
}
