/* SKIN & BLUSH — reseñas, legal, compra y carga de fotos */

/* fotos: brillo nude mientras cargan y aparición suave */
.pcard-media, .cat-media, .g-item, .step-media, .ed-media, .hero-media, .line-img, .chip-img, .dd-feature {
  background: linear-gradient(100deg, var(--nude) 30%, color-mix(in srgb, var(--nude) 55%, var(--ivory)) 50%, var(--nude) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite; }
.hero-media { animation: unveil 1.6s var(--ease) both, shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
#view img, .drawer img, .search img, .dd-feature img { opacity: 0; transition: opacity .7s var(--ease), transform var(--slow) var(--ease); }
#view img.loaded, .drawer img.loaded, .search img.loaded, .dd-feature img.loaded { opacity: 1; }
#view .pcard-media .b { opacity: 0; }
@media (hover: hover) { #view .pcard:hover .pcard-media .b.loaded { opacity: 1; } }
img.a:not(.loaded) ~ .tint, .g-item img:not(.loaded) ~ .tint { opacity: 0 !important; }

/* fotos de producto del proveedor (cuadradas, fondo blanco): completas, sin recortar */
img[src*="cloudfront.net"] { object-fit: contain; background: #fff; padding: 6%; }
.pcard-media:has(img[src*="cloudfront.net"]), .g-item:has(img[src*="cloudfront.net"]), .step-media:has(img[src*="cloudfront.net"]),
.line-img:has(img[src*="cloudfront.net"]), .chip-img:has(img[src*="cloudfront.net"]) { background: #fff; animation: none; }
.line-img img[src*="cloudfront.net"], .chip-img img[src*="cloudfront.net"], .sr-list img[src*="cloudfront.net"] { padding: 2px; }

/* botón con apariencia de enlace */
.lnk { display: inline; padding: 0; color: var(--mocha); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); transition: text-decoration-color .3s; font: inherit; }
.lnk:hover { text-decoration-color: var(--mocha); }

/* estrellas */
.stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 2px; line-height: 1; color: var(--nude); white-space: nowrap; }
.stars b { position: absolute; inset: 0; width: var(--p); overflow: hidden; color: var(--rose); font-weight: 400; }
.card-stars { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.card-stars small { font-size: 11.5px; color: var(--soft); }
.rv-sum { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.rv-sum b { color: var(--mocha); font-weight: 500; }
.rv-sum.none { font-size: 12.5px; }
.rv-jump { display: inline-block; margin-top: 12px; }
.rv-jump:hover .rv-sum { color: var(--mocha); }

/* reseñas */
.rv-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 90px); align-items: start; }
.rv-item { padding: 22px 0; border-bottom: 1px solid var(--hair); }
.rv-item:first-child { border-top: 1px solid var(--hair); }
.rv-item header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.rv-item b { font-weight: 500; font-size: 14px; }
.rv-item time { font-size: 12px; color: var(--soft); margin-left: auto; }
.rv-item p { font: italic 400 20px/1.35 var(--serif); }
.rv-item.fresh { animation: rise .8s var(--ease); }
.rv-empty { padding: 34px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.rv-empty p { font: 400 26px var(--serif); } .rv-empty span { color: var(--soft); font-size: 14px; }
.rv-form { display: grid; gap: 16px; padding: 28px; background: color-mix(in srgb, var(--nude) 55%, var(--ivory)); }
.rv-q { font: italic 400 26px/1 var(--serif); }
.rate { display: flex; align-items: center; gap: 4px; }
.rate button { font-size: 30px; line-height: 1; color: color-mix(in srgb, var(--rose) 30%, var(--ivory)); transition: color .25s, transform .25s var(--ease); padding: 2px; }
.rate button.on { color: var(--rose); }
.rate button:active { transform: scale(.85); }
.rate span { margin-left: 10px; font-size: 13px; color: var(--soft); }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }
.fld input, .fld textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--hair); background: none; font: inherit; color: var(--mocha); outline: 0; resize: vertical; transition: border-color .3s; }
.fld input:focus, .fld textarea:focus { border-color: var(--mocha); }
.fld ::placeholder { color: var(--soft); }
.rv-meta { display: flex; justify-content: flex-end; margin-top: -8px; font-size: 12px; color: var(--soft); }
.rv-meta .over { color: #a3303f; }
.rv-note, .news-legal { font-size: 12.5px; color: var(--soft); }
.rv-form .btn { justify-self: start; }
.rv-err { min-height: 1.4em; font-size: 13px; color: var(--rose); margin-top: -6px; }
.news-legal { margin-top: 14px; }

/* compra: resumen de privacidad y aceptación obligatoria */
.priv-sum { margin: 4px 0 14px; padding: 12px 14px; background: color-mix(in srgb, var(--nude) 55%, var(--ivory)); font-size: 12.5px; line-height: 1.55; color: var(--soft); }
.priv-sum b { color: var(--mocha); font-weight: 500; }
.priv-sum .lnk { display: block; margin-top: 6px; font-size: 12.5px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--mocha); background: var(--ivory); display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.consent input::after { content: ""; width: 10px; height: 5px; border-left: 1.5px solid var(--ivory); border-bottom: 1.5px solid var(--ivory); transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .25s var(--ease); }
.consent input:checked { background: var(--mocha); }
.consent input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
#checkout[aria-disabled] { opacity: .45; }
#checkout[aria-disabled]:hover { background: var(--mocha); }

/* lector de textos legales */
.legal-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(118, 96, 87, .3);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s; }
.legal-modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lm-box { display: flex; flex-direction: column; width: min(720px, 100%); max-height: min(86svh, 900px); background: var(--ivory); transform: translateY(16px); transition: transform .5s var(--ease); }
.legal-modal.open .lm-box { transform: none; }
.lm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--hair); }
.lm-head h2 { font-size: 28px; }
.lm-body { overflow: auto; padding: 8px 24px 24px; overscroll-behavior: contain; }
.lm-foot { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); }
.legal-doc h2 { font: 400 22px/1.2 var(--serif); margin: 26px 0 8px; }
.legal-doc p { margin-bottom: 12px; color: var(--soft); max-width: 66ch; }
.legal-doc b { color: var(--mocha); font-weight: 500; }
.legal-doc .upd { font-size: 12px; letter-spacing: .1em; }
.legal-doc mark { background: var(--blush); color: var(--mocha); padding: 0 4px; }

/* tonos encima de la foto principal (en todas las pantallas) */
.g-tones { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; background: rgba(247, 242, 236, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise .8s var(--ease) .4s both; }
.g-tones b { font: italic 400 20px/1.1 var(--serif); min-width: 0; transition: opacity .18s, transform .3s var(--ease); }
.g-tones b.swap { opacity: 0; transform: translateY(4px); }
.g-tones div { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.g-tones div::-webkit-scrollbar { display: none; }
.g-tones .tone { width: 32px; height: 32px; flex: none; }
.g-item:hover .g-tones { transform: none; }
/* precio más grande en la ficha */
.pdp-price { margin: 18px 0 26px; }
.pdp-price .price { font: 500 clamp(28px, 3vw, 36px)/1 var(--serif); letter-spacing: 0; }
.pdp-price .price s { font: 400 18px var(--sans); }
@media (max-width: 900px) {
  .g-tones { left: 10px; right: 10px; bottom: 10px; padding: 8px 8px 8px 14px; }
  .g-tones b { font-size: 17px; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-form { padding: 22px 18px; margin: 0 calc(var(--g) * -1); }
  .lm-box { max-height: 92svh; }
  .lm-head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pcard-media, .cat-media, .g-item, .step-media, .ed-media, .hero-media, .line-img, .chip-img, .dd-feature { animation: none; } }
