/* SKIN & BLUSH — capa de movimiento y producción (se carga después de styles.css) */

/* barra de progreso y encabezado que se esconde al bajar */
.hdr { transition: box-shadow .4s var(--ease), transform .5s var(--ease); }
.hdr.hide { transform: translateY(-100%); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; }
.bump { animation: bump .5s var(--ease); } @keyframes bump { 40% { transform: scale(1.18); } }
.fly { position: fixed; z-index: 60; pointer-events: none; background: var(--nude) center / cover; }

.nav-a { white-space: nowrap; }
@media (max-width: 1360px) { .nav { gap: 22px; } .nav > a.nav-a:last-of-type { display: none; } }

/* títulos que suben línea por línea */
.split .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.split .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease) calc(var(--li) * 110ms + var(--d, 0ms)); }
.split.in .ln > span { transform: none; }
.d4 { animation-delay: .5s; } .d5 { animation-delay: .62s; }

/* hero */
.hero-media { animation: unveil 1.6s var(--ease) both; }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero-img, [data-parallax] { position: absolute; inset: 0; will-change: transform; transform: scale(1.12); }
.hero-img img { animation: settle 2.6s var(--ease) both; }
.hero-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-copy { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-chip { position: absolute; left: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; max-width: calc(100% - 48px);
  background: rgba(247, 242, 236, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: rise 1s var(--ease) 1.1s both; transition: background .3s; }
.hero-chip:hover { background: var(--ivory); }
.chip-img { width: 52px; height: 64px; flex: none; overflow: hidden; background: var(--nude); }
.hero-chip small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); }
.hero-chip b { display: block; font: 400 19px/1.1 var(--serif); }
.hero-chip em { font-style: normal; font-size: 12.5px; color: var(--soft); }
.hero-chip svg { width: 16px; height: 16px; margin-left: 6px; transition: transform .4s var(--ease); }
.hero-chip:hover svg { transform: translateX(4px); }
.scroll-cue { position: absolute; left: var(--g); bottom: 34px; display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); animation: rise 1s var(--ease) 1.3s both; }
.scroll-cue i { position: relative; width: 40px; height: 1px; background: var(--hair); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--mocha); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* cinta de palabras */
.marquee { overflow: hidden; margin-top: clamp(40px, 6vw, 80px); padding: 22px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.marquee > div { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover > div { animation-play-state: paused; }
.marquee span { display: flex; align-items: center; }
.marquee b { font: italic 400 clamp(26px, 3.2vw, 44px)/1 var(--serif); padding: 0 34px; white-space: nowrap; }
.marquee i { font-style: normal; font-size: 12px; color: var(--blush); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* fotos que se descubren al aparecer */
.reveal.wipe { opacity: 1; transform: none; }
.wipe .cat-media, .ed-media.wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease) var(--d, 0ms); }
.wipe.in .cat-media, .ed-media.wipe.in { clip-path: inset(0); }
.wipe .cat-txt { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease) calc(var(--d, 0ms) + .35s), transform .9s var(--ease) calc(var(--d, 0ms) + .35s); }
.wipe.in .cat-txt { opacity: 1; transform: none; }

/* categorías */
.cat-media { position: relative; }
.cat-num { position: absolute; top: 14px; left: 16px; z-index: 1; font: italic 400 20px var(--serif); color: var(--ivory); text-shadow: 0 1px 12px rgba(118, 96, 87, .35); }
.cat-go { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 18px;
  background: var(--ivory); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transform: translateY(101%); transition: transform .6s var(--ease); }
.cat-go svg { width: 16px; height: 16px; }
.cat:hover .cat-go { transform: none; }
.cat:hover .cat-media img { transform: scale(1.06); }

/* pestañas con subrayado que se desliza */
.tabs { position: relative; }
.tab-ink { position: absolute; left: 0; bottom: -10px; height: 1px; width: 0; background: var(--mocha); transition: transform .6s var(--ease), width .6s var(--ease); }

/* tarjetas */
.pcard.reveal { transform: translateY(26px) scale(.985); }
.pcard.reveal.in { transform: none; }
.hover-add { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px;
  background: rgba(247, 242, 236, .94); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .55s var(--ease), background .3s, color .3s; }
.hover-add svg { width: 14px; height: 14px; }
.hover-add:hover { background: var(--mocha); color: var(--ivory); }
.hover-add.done { background: var(--rose); color: var(--ivory); }
@media (hover: hover) { .pcard:hover .hover-add { opacity: 1; transform: none; } .pcard:hover .tint { transform: scale(1.03); } }
@media (hover: none) { .hover-add { display: none; } }
.swatches { align-items: center; }
.swatches button { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--ivory), 0 0 0 2.5px transparent; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.swatches button:hover { transform: scale(1.15); }
.swatches button.on { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--mocha); }
.swatches small { margin-left: 6px; font-size: 11.5px; color: var(--soft); }
.retone .pcard-media .a { animation: retone .6s var(--ease); }
@keyframes retone { 40% { filter: brightness(1.08); } }

/* capa de color (cambio de tono sobre la foto) */
.tint { position: absolute; inset: 0; pointer-events: none; background-color: var(--tone); transition: background-color .7s var(--ease), transform var(--slow) var(--ease); }
.tint { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.tint.c { mix-blend-mode: color; opacity: var(--soft); }
.tint.m { mix-blend-mode: multiply; opacity: calc(var(--soft) * .32); }
.pcard-media .b { z-index: 1; }
.g-item { position: relative; }
.g-item:hover .tint { transform: scale(1.03); }
.tone-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 45%, var(--c, transparent) 0, transparent 55%); opacity: 0; mix-blend-mode: soft-light; }
.tone-flash.go { animation: flash .9s var(--ease); }
@keyframes flash { 0% { opacity: 0; transform: scale(.6); } 35% { opacity: .9; } 100% { opacity: 0; transform: scale(1.4); } }

/* ficha: selector de tono con muestra de textura */
.tone-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.smear { width: 64px; height: 40px; flex: none; border-radius: 48% 52% 40% 60% / 60% 45% 55% 40%; transform: rotate(-8deg);
  background: radial-gradient(ellipse 60% 40% at 32% 30%, rgba(255, 255, 255, .45), transparent 70%), linear-gradient(115deg, var(--c), color-mix(in srgb, var(--c) 78%, #000));
  transition: background .7s var(--ease); }
.tone-head p { display: grid; gap: 2px; margin: 0; }
.tone-head small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--soft); }
.tone-head b { font: italic 400 24px/1 var(--serif); transition: opacity .18s, transform .3s var(--ease); }
.tone-head b.swap { opacity: 0; transform: translateY(6px); }
.tone-list { display: flex; flex-wrap: wrap; gap: 12px; }
.tone { position: relative; width: 34px; height: 34px; }
.tone span { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 4px 8px; background: var(--mocha); color: var(--ivory); font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.tone:hover span { opacity: 1; transform: translate(-50%, 0); }
.tone:active { transform: scale(.92); }

/* editorial */
.ed-media { position: relative; }
.ed-copy { position: relative; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.ed-copy > * { position: relative; }
.ed-copy .ed-word { position: absolute; right: -4%; bottom: 6%; font: italic 400 clamp(120px, 18vw, 260px)/1 var(--serif); color: transparent;
  -webkit-text-stroke: 1px rgba(184, 142, 131, .4); pointer-events: none; white-space: nowrap; }

/* rutina en 3 pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 32px); list-style: none; }
.step a { display: block; position: relative; }
.step-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--nude); }
.step-media img { transition: transform var(--slow) var(--ease); }
.step:hover .step-media img { transform: scale(1.04); }
.step-n { position: absolute; top: -.42em; right: 14px; z-index: 1; font: italic 400 clamp(64px, 7vw, 110px)/1 var(--serif); color: var(--blush); }
.step-txt { padding-top: 18px; }
.step-txt h3 { font-size: 30px; }
.step-txt p { color: var(--soft); margin: 4px 0 12px; }
.step-p { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--hair); padding-bottom: 4px; transition: border-color .4s; }
.step:hover .step-p { border-color: var(--mocha); }
.step:nth-child(2) { margin-top: clamp(0px, 5vw, 70px); }
.step:nth-child(3) { margin-top: clamp(0px, 10vw, 140px); }

/* valores con íconos que se dibujan */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); max-width: calc(var(--max) - var(--g) * 2); }
.val { display: grid; justify-items: center; gap: 14px; text-align: center; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.val svg { width: 30px; height: 30px; stroke: var(--rose); stroke-width: 1; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 2s var(--ease) calc(var(--d, 0ms) + .2s); }
.val.in svg { stroke-dashoffset: 0; }

/* firma gigante del pie */
.foot-mark { font: 400 clamp(40px, 11vw, 190px)/.9 var(--serif); letter-spacing: .06em; color: var(--nude); white-space: nowrap; text-align: center; margin: 0 0 30px; overflow: hidden; }
.foot-mark i { color: var(--blush); }
.foot-mark.reveal { transform: translateY(40px); }
.foot-mark.reveal.in { transform: none; }

/* newsletter: línea que se llena al escribir */
.news-form { position: relative; }
.news-form::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.news-form:focus-within::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .hero-media { position: relative; }
  .hero-chip { left: 12px; bottom: 12px; padding: 8px 12px 8px 8px; }
  .chip-img { width: 40px; height: 50px; }
  .hero-chip b { font-size: 16px; }
  .scroll-cue { display: none; }
  .hero-cta { gap: 22px; }
  .cat-go { transform: none; padding: 12px 14px; background: rgba(247, 242, 236, .9); }
  .steps, .cats { scroll-padding-inline: var(--g); }
  .steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--g) * -1); padding: 30px var(--g) 0; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: none; width: 76%; scroll-snap-align: start; margin-top: 0 !important; }
  .values { grid-template-columns: 1fr 1fr; row-gap: 30px; margin-left: var(--g); margin-right: var(--g); }
  .ed-copy .ed-word { font-size: 120px; bottom: 2%; }
  .tone { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .split .ln > span { transform: none; } .wipe .cat-media, .ed-media.wipe { clip-path: none; } .wipe .cat-txt { opacity: 1; transform: none; }
  .val svg { stroke-dashoffset: 0; } .marquee > div { animation: none; }
}
