/* =========================================================
   Xime Corona — sistema de diseño
   Dirección: "cuaderno de estrategia con stickers"
   ========================================================= */
:root {
  --ink: #1A1D3D;        /* azul marino del blazer */
  --ink-2: #2A2F5C;
  --milk: #FFF5F9;       /* blanco con rubor */
  --bubble: #FF4D9D;     /* rosa chicle */
  --bubble-deep: #E02D7F;
  --blush: #FFC6DE;
  --lime: #DDF247;       /* resaltador */
  --lilac: #B8A6FF;
  --line: rgba(26, 29, 61, .14);

  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .62);
  --glass-dark: rgba(42, 47, 92, .45);
  --glass-border: rgba(255, 255, 255, .7);

  --f-sans: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  /* escala tipográfica (cuarta perfecta, fluida) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --t-lg: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --t-xl: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
  --t-xxl: clamp(3.25rem, 1.4rem + 8vw, 9.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --r-sm: 10px;
  --r-md: 22px;
  --r-lg: 34px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
body.is-dark { background: var(--ink); color: var(--milk); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--bubble); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--f-sans);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-size: var(--t-xxl);
  line-height: .86;
  letter-spacing: -.02em;
  margin: 0;
}
.display .serif, .h1 .serif, .h2 .serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  font-variation-settings: normal;
}
.h1 { font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; font-size: var(--t-xl); line-height: .92; letter-spacing: -.015em; margin: 0; }
.h2 { font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 72; font-size: var(--t-lg); line-height: 1; margin: 0; }
.lede { font-size: var(--t-md); line-height: 1.45; max-width: 34ch; margin: 0; }
.serif-quote { font-family: var(--f-serif); font-style: italic; font-size: var(--t-lg); line-height: 1.12; }
.muted { opacity: .72; }
.mark { background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); padding-inline: .08em; }
.pink { color: var(--bubble); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--ink); --fg: var(--milk);
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: var(--t-sm);
  text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bubble); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--pink { --bg: var(--bubble); --fg: #fff; }
.btn--pink::after { background: var(--ink); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime::after { background: #fff; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { color: #fff; }
.btn--block { width: 100%; justify-content: center; }
.btn svg { width: 1em; height: 1em; }
.link-u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--ease); }
.link-u:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px -24px rgba(26,29,61,.35);
}
.is-dark .glass, .glass--dark {
  background: var(--glass-dark);
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 30px 60px -30px rgba(0,0,0,.6);
}

/* Manchas de color detrás del vidrio */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; will-change: transform; }
.blob--pink { background: var(--bubble); }
.blob--lime { background: var(--lime); }
.blob--lilac { background: var(--lilac); }
.blob--blush { background: var(--blush); }

/* ---------- Stickers ---------- */
.sticker {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45em .95em;
  border-radius: 999px;
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: var(--t-sm);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.sticker--pink { background: var(--bubble); color: #fff; }
.sticker--lime { background: var(--lime); }
.star { width: 1em; height: 1em; display: inline-block; flex: none; }
.star-float { position: absolute; color: var(--bubble); width: clamp(22px, 3vw, 40px); height: auto; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  transition: transform .5s var(--ease);
}
.site-header.is-hidden { transform: translateY(-140%); }
.announce { position: relative; z-index: 55; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px 16px; background: var(--ink); color: var(--milk); font-weight: 700; font-size: var(--t-sm); text-align: center; }
.announce .star { color: var(--lime); width: .8em; height: .8em; }
.has-announce .site-header { top: 52px; transition: transform .5s var(--ease), top .4s var(--ease); }
.has-announce.announce-gone .site-header { top: 14px; }

.logo { justify-self: start; text-decoration: none; display: inline-flex; align-items: baseline; gap: .15em; font-family: var(--f-serif); font-style: italic; font-size: 1.85rem; line-height: 1; }
.logo b { font-family: var(--f-sans); font-style: normal; font-weight: 800; font-variation-settings: "wdth" 75; font-size: .62em; letter-spacing: .02em; }
.logo .star { color: var(--bubble); width: .55em; height: .55em; transform: translateY(-.6em); }
.nav-pill { display: flex; gap: 2px; padding: 5px; border-radius: 999px; }
.nav-pill a {
  text-decoration: none; font-weight: 600; font-size: var(--t-sm);
  padding: .55em 1.05em; border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav-pill a:hover { background: rgba(255,255,255,.7); }
.is-dark .nav-pill a:hover { background: rgba(255,255,255,.12); }
.nav-pill a[aria-current="page"] { background: var(--ink); color: var(--milk); }
.is-dark .nav-pill a[aria-current="page"] { background: var(--milk); color: var(--ink); }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; }
.cart-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; text-decoration: none;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--bubble); color: #fff; font-size: 11px; font-weight: 800;
  transform: scale(0); transition: transform .4s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .4s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bubble); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: .2em;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 40px) 37px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 37px); visibility: visible; }
.mobile-menu a { font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(2.6rem, 13vw, 4.5rem); line-height: 1; text-decoration: none; }
.mobile-menu a:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.mobile-menu .mm-foot { margin-top: 2rem; font-size: var(--t-sm); font-weight: 600; }

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .menu-btn { display: inline-block; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-actions .btn { display: none; }
}

/* ---------- Transición entre páginas ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--bubble);
  transform: translateY(100%);
  display: grid; place-items: center;
}
.curtain .star { width: 64px; height: 64px; color: var(--lime); }
.curtain.is-in { transform: translateY(0); transition: transform .55s var(--ease); }
.curtain.is-out { transform: translateY(-100%); transition: transform .7s var(--ease); }
.page-enter .curtain { transform: translateY(0); }

/* ---------- Secciones genéricas ---------- */
.section { position: relative; padding-block: clamp(80px, 12vw, 180px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.page-hero { position: relative; padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(48px, 7vw, 96px); isolation: isolate; }
.page-hero .lede { margin-top: 1.5rem; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 2px solid var(--ink); background: var(--lime); padding-block: .7em; }
.marquee__track { display: inline-flex; gap: 2.2em; animation: marquee 32s linear infinite; font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--t-md); }
.marquee__track span { display: inline-flex; align-items: center; gap: 2.2em; }
.marquee__track i { font-family: var(--f-serif); font-weight: 400; }
.marquee .star { color: var(--bubble); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Hero inicio ---------- */
.hero { min-height: 100svh; position: relative; isolation: isolate; padding-top: 120px; padding-bottom: 40px; display: grid; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__meta { margin-top: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; justify-self: center; width: min(100%, 460px); }
.photo {
  position: absolute; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, var(--blush), var(--bubble) 70%, var(--lilac));
  border: 6px solid #fff;
  box-shadow: 0 30px 70px -30px rgba(26,29,61,.55);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile__avatar .photo__img { border-radius: 50%; object-position: 50% 30%; }

/* Fotos recortadas (sin fondo): se apoyan abajo y la cabeza "sale" del marco */
.photo.has-photo { overflow: visible; }
.photo.has-photo .photo__img {
  inset: auto -8% 0; width: 116%; height: 118%;
  object-fit: contain; object-position: 50% 100%;
  border-radius: 0 0 calc(var(--r-lg) - 6px) calc(var(--r-lg) - 6px);
  filter: drop-shadow(0 18px 24px rgba(26,29,61,.25));
}
.photo--front.has-photo .photo__img { inset: auto 0 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 0; }
.photo--front.has-photo { clip-path: inset(-40% 0 0 0 round 0 0 var(--r-lg) var(--r-lg)); }
.photo--back.has-photo .photo__img { inset: auto 0 0 auto; width: 150%; height: 128%; object-position: 100% 100%; }
.photo--back.has-photo { clip-path: inset(-40% 0 0 0 round var(--r-lg)); }
/* recorte limpio en el borde inferior y lateral sin cortar la cabeza */
.photo.has-photo { clip-path: inset(-40% -12% 0 -12% round 0 0 var(--r-lg) var(--r-lg)); }
.photo__ph { position: absolute; inset: 0; display: grid; place-items: end start; padding: 18px; color: #fff; font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; }
.photo__ph { isolation: isolate; text-shadow: 0 1px 8px rgba(26,29,61,.6); }
.photo__ph svg { z-index: -1; position: absolute; inset: auto 0 0 0; width: 100%; height: 82%; color: rgba(26,29,61,.85); }
.photo--back { inset: 4% -6% 10% 18%; transform: rotate(6deg); background: linear-gradient(160deg, var(--lime), #b9d61a); }
.photo--front { inset: 10% 14% 0 -2%; transform: rotate(-4deg); }
.hero__visual .sticker { position: absolute; z-index: 3; }
.hero__visual .s1 { top: 6%; left: -8%; transform: rotate(-8deg); }
.hero__visual .s2 { bottom: 14%; right: -6%; transform: rotate(5deg); }
.chip-glass { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 18px; display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); font-weight: 600; }
.chip-glass strong { font-size: 1.4rem; font-variation-settings: "wdth" 75; font-weight: 800; line-height: 1; }
.hero__visual .c1 { top: 42%; right: -14%; }
.scroll-cue { position: absolute; bottom: 28px; right: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 600; text-decoration: none; }
.scroll-cue i { width: 2px; height: 42px; background: linear-gradient(var(--ink) 50%, transparent 50%) 0 0 / 100% 200%; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { background-position: 0 -100%; } }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(82%, 360px); margin-top: 24px; }
  .hero__visual .c1 { right: -8%; }
  .hero__visual .s1 { left: -4%; }
  .scroll-cue { display: none; }
}

/* ---------- Manifiesto (revelado palabra a palabra) ---------- */
.manifesto { padding-block: clamp(100px, 16vw, 220px); }
.manifesto p { font-weight: 700; font-variation-settings: "wdth" 80; font-size: var(--t-xl); line-height: 1.02; letter-spacing: -.015em; margin: 0; max-width: 18ch; }
.manifesto p em { font-family: var(--f-serif); font-weight: 400; }
.manifesto .w { opacity: .14; transition: opacity .2s linear; }
.manifesto .w.on { opacity: 1; }
.manifesto__sign { margin-top: 2rem; display: flex; align-items: center; gap: 14px; }

/* ---------- Scrollytelling LinkedIn ---------- */
.story { position: relative; }
.story__pin { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: 100px 40px; }
.story__steps { position: relative; min-height: 340px; }
.story__step { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.story__step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story__num { font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; color: var(--bubble); }
.story__step h3 { font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--t-xl); line-height: .92; margin: .2em 0 .45em; }
.story__step p { font-size: var(--t-md); max-width: 30ch; margin: 0; }
.story__progress { display: flex; gap: 6px; margin-top: 28px; }
.story__progress i { height: 4px; flex: 1; max-width: 70px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.story__progress i::after { content: ""; position: absolute; inset: 0; background: var(--bubble); transform: scaleX(var(--p, 0)); transform-origin: left; }

.profile { position: relative; width: min(100%, 420px); justify-self: center; border-radius: var(--r-lg); padding: 0 0 18px; overflow: hidden; }
.profile__banner { height: 96px; background: linear-gradient(110deg, var(--bubble), var(--lilac) 60%, var(--lime)); transition: filter .6s var(--ease); }
.profile[data-step="0"] .profile__banner { filter: grayscale(1) opacity(.45); }
.profile__avatar { width: 92px; height: 92px; border-radius: 50%; margin: -46px 0 0 20px; border: 4px solid #fff; background: linear-gradient(160deg, var(--blush), var(--bubble)); position: relative; overflow: hidden; }
.profile__avatar svg { position: absolute; bottom: 0; width: 100%; height: 85%; color: var(--ink); }
.profile__body { padding: 10px 20px 0; }
.profile__name { font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 6px; }
.profile__headline { font-size: var(--t-sm); margin-top: 2px; min-height: 2.8em; }
.profile__headline .old { text-decoration: line-through; opacity: .5; }
.profile__stats { display: flex; gap: 20px; margin-top: 12px; font-size: var(--t-sm); }
.profile__stats b { font-size: 1.35rem; font-weight: 800; font-variation-settings: "wdth" 75; display: block; line-height: 1; }
.profile__post, .profile__dm {
  margin: 14px 20px 0; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.7);
  font-size: var(--t-sm); transform-origin: top; transition: opacity .6s var(--ease), transform .6s var(--ease), max-height .6s var(--ease);
  opacity: 0; transform: translateY(14px) scale(.96); max-height: 0; overflow: hidden; padding-block: 0;
}
.profile__post.on, .profile__dm.on { opacity: 1; transform: none; max-height: 220px; padding-block: 14px; }
.profile__post .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 8px; }
.profile__post .bar:nth-child(3) { width: 70%; }
.profile__post .reactions { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; }
.profile__dm { background: var(--ink); color: var(--milk); display: flex; gap: 10px; align-items: center; }
.profile__dm .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); flex: none; box-shadow: 0 0 0 4px rgba(221,242,71,.25); }

@media (max-width: 900px) {
  .story__pin { grid-template-columns: 1fr; align-content: center; padding-block: 90px 24px; gap: 20px; }
  .story__steps { min-height: 210px; order: 2; }
  .story__step h3 { font-size: clamp(2rem, 9vw, 3rem); }
  .profile { order: 1; width: min(100%, 360px); }
  .profile__banner { height: 64px; }
}

/* ---------- Tips horizontales ---------- */
.htrack-wrap { overflow: hidden; }
.htrack { display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; }
.tip-card {
  width: clamp(270px, 30vw, 380px); min-height: 400px; flex: none;
  border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease);
}
.tip-card:hover { transform: translateY(-6px) rotate(-1deg); }
.tip-card .tag { align-self: flex-start; }
.tip-card .tip-art { display: block; width: 86%; max-width: 280px; margin: 14px auto 0; }
.tip-card--pink .tip-art { color: #fff; }
.tip .tip-art { display: block; width: 100%; max-width: 230px; margin: 14px 0 0; }
.tip-card h3 { font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: .95; margin: auto 0 .4em; }
.tip-card h3 em { font-family: var(--f-serif); font-weight: 400; }
.tip-card p { margin: 0; font-size: var(--t-sm); opacity: .8; }
.tip-card--pink { background: var(--bubble); color: #fff; }
.tip-card--lime { background: var(--lime); color: var(--ink); }
.tip-card--lilac { background: var(--lilac); color: var(--ink); }
.tip-card--milk { background: var(--milk); color: var(--ink); }
.tip-card--end { display: grid; place-content: center; text-align: center; gap: 18px; background: transparent; border: 2px dashed rgba(255,255,255,.4); }
.tag { display: inline-block; padding: .3em .8em; border-radius: 999px; font-size: var(--t-xs); font-weight: 700; background: rgba(255,255,255,.85); color: var(--ink); }
.dark-zone { background: var(--ink); color: var(--milk); }

@media (max-width: 900px) {
  .htrack-wrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .htrack-wrap::-webkit-scrollbar { display: none; }
  .tip-card { scroll-snap-align: center; min-height: 340px; }
}

/* ---------- Portadas de producto (CSS) ---------- */
.cover {
  position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; isolation: isolate;
  padding: 8% 9%; display: flex; flex-direction: column;
  box-shadow: 0 2px 0 rgba(255,255,255,.4) inset, 18px 24px 40px -22px rgba(26,29,61,.6);
  color: var(--ink);
}
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.cover__kicker { font-size: clamp(.6rem, 1.1vw, .8rem); font-weight: 700; }
.cover__title { margin-top: auto; font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: .88; }
.cover__title em { font-family: var(--f-serif); font-weight: 400; display: block; }
.cover__by { margin-top: .8em; font-family: var(--f-serif); font-style: italic; font-size: clamp(.8rem, 1.2vw, 1rem); }
.cover .star-float { color: currentColor; }
.cover > span { position: relative; z-index: 2; }
.cover__photo {
  position: absolute; z-index: 1; left: 50%; bottom: 26%; height: 66%; width: auto; max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
}
/* difuminado inferior de la foto con el color de la portada (sin mask-image: falla en capas animadas) */
.cover--photo::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(to bottom, transparent 0%, var(--cbg) 52%);
  pointer-events: none;
}
.cover--pink { --cbg: var(--bubble); } .cover--lime { --cbg: var(--lime); } .cover--ink { --cbg: var(--ink); }
.cover--lilac { --cbg: var(--lilac); } .cover--blush { --cbg: var(--blush); }
.cover > .cover__art { position: absolute; z-index: 3; top: 7%; right: 6%; width: 36%; transform: rotate(8deg); color: inherit; }
.cover--art > .cover__art { top: 16%; right: 50%; width: 62%; transform: translateX(50%) rotate(-4deg); }
.cover__art svg, .tip-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.line-item .cover__photo { bottom: 0; height: 80%; }
.line-item .cover--photo::after { display: none; }
.line-item .cover__art, .line-item .cover__title { display: none; }
.cover--pink { background: var(--bubble); color: #fff; }
.cover--pink .cover__title em { color: var(--lime); }
.cover--lime { background: var(--lime); }
.cover--lime .cover__title em { color: var(--bubble-deep); }
.cover--ink { background: var(--ink); color: var(--milk); }
.cover--ink .cover__title em { color: var(--bubble); }
.cover--lilac { background: var(--lilac); }
.cover--blush { background: var(--blush); }
.cover--blush .cover__title em { color: var(--bubble-deep); }

/* ---------- Producto destacado (inicio) ---------- */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.feature__visual { position: relative; padding: 8%; }
.feature__visual .cover { transform: rotate(-5deg); }
.feature__visual .cover + .cover { position: absolute; inset: 14% 0 0 22%; transform: rotate(7deg); z-index: -1; }
.price { display: flex; align-items: baseline; gap: 12px; font-weight: 800; font-variation-settings: "wdth" 75; }
.price strong { font-size: var(--t-lg); }
.price s { opacity: .5; font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 2px; flex: none; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231A1D3D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; border: 1.5px solid var(--ink); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature__visual { max-width: 380px; } }

/* ---------- Rejilla de productos ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.product-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.product-card .cover { transition: transform .6s var(--ease); }
.product-card:hover .cover { transform: rotate(-2deg) translateY(-6px); }
.product-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card h3 { margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.15; }
.product-card .type { font-size: var(--t-sm); opacity: .7; }
.product-card .p { font-weight: 800; white-space: nowrap; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: .55em 1.1em; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
  font-weight: 600; font-size: var(--t-sm); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--milk); }
.filter:hover:not([aria-pressed="true"]) { background: var(--blush); }

/* ---------- Detalle de producto ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.pdp__visual { position: sticky; top: 110px; padding: 6%; isolation: isolate; }
.pdp__visual .cover { transform: rotate(-3deg); }
.pdp__buy { border-radius: var(--r-md); padding: 22px; margin-top: 28px; }
.pdp__buy .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp__buy small { display: block; margin-top: 12px; font-size: var(--t-xs); opacity: .75; }
.accordion { border-top: 1.5px solid var(--ink); margin-top: 36px; }
.accordion details { border-bottom: 1.5px solid var(--ink); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .4s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 0 20px; max-width: 60ch; }
.modules { counter-reset: m; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.modules li { counter-increment: m; display: flex; gap: 12px; }
.modules li::before { content: counter(m, decimal-leading-zero); font-family: var(--f-serif); font-style: italic; color: var(--bubble); }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp__visual { position: relative; top: 0; max-width: 360px; } }

/* ---------- Carrito lateral ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(26,29,61,.35); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.drawer {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 61;
  width: min(440px, calc(100% - 20px)); border-radius: var(--r-md);
  display: flex; flex-direction: column; padding: 22px;
  transform: translateX(calc(100% + 20px)); transition: transform .6s var(--ease);
  background: rgba(255,245,249,.78); color: var(--ink);
}
.cart-open .drawer { transform: none; }
.cart-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head h2 { margin: 0; font-weight: 800; font-variation-settings: "wdth" 75; font-size: 2rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; display: grid; place-items: center; }
.drawer__items { flex: 1; overflow: auto; margin-block: 18px; display: grid; gap: 12px; align-content: start; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.7); }
.line-item .cover { padding: 6px; border-radius: 8px; box-shadow: none; }
.line-item .cover__title { font-size: .7rem; }
.line-item .cover__kicker, .line-item .cover__by { display: none; }
.line-item h4 { margin: 0; font-size: var(--t-sm); }
.line-item button { border: 0; background: none; padding: 0; font-size: var(--t-xs); text-decoration: underline; cursor: pointer; opacity: .7; }
.drawer__empty { text-align: center; padding: 40px 10px; display: grid; gap: 16px; justify-items: center; }
.drawer__foot { display: grid; gap: 12px; }
.totals { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; }

/* ---------- Checkout ---------- */
.test-banner { background: var(--lime); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; font-size: var(--t-sm); margin-bottom: 28px; }
.checkout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.panel { border-radius: var(--r-md); padding: clamp(18px, 3vw, 32px); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: var(--t-sm); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9em 1em; border-radius: 12px; border: 1.5px solid rgba(26,29,61,.25); background: rgba(255,255,255,.8);
  font: inherit; color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,77,157,.25); }
.field .hint { font-size: var(--t-xs); opacity: .7; }
.field .err { font-size: var(--t-xs); color: #B4124F; font-weight: 600; min-height: 1em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.pay-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.pay-tab {
  padding: 12px 8px; border-radius: 14px; border: 1.5px solid rgba(26,29,61,.25); background: rgba(255,255,255,.6);
  cursor: pointer; font-weight: 700; font-size: var(--t-sm); display: grid; gap: 4px; justify-items: center; text-align: center;
}
.pay-tab small { font-weight: 500; font-size: 11px; opacity: .7; }
.pay-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--milk); }
.pay-panel[hidden] { display: none; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; font-weight: 800; font-size: 1.3rem; }
.ref-box { margin-top: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1.5px dashed var(--ink); font-size: var(--t-sm); }
.ref-box code { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: .08em; margin-top: 4px; font-family: var(--f-sans); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .checkout aside { order: -1; } .pay-tabs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tips (página) ---------- */
.tips-grid { columns: 3 300px; column-gap: 20px; }
.tip { break-inside: avoid; margin-bottom: 20px; border-radius: var(--r-md); padding: 22px; }
.tip[hidden] { display: none; }
.tip h3 { margin: 12px 0 0; font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.55rem; line-height: 1.02; }
.tip h3 em { font-family: var(--f-serif); font-weight: 400; }
.tip .tip-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.tip .tip-body > div { overflow: hidden; min-height: 0; }
.tip.open .tip-body { grid-template-rows: 1fr; }
.tip .tip-body p { margin: 14px 0 0; }
.tip .tip-toggle { margin-top: 14px; border: 0; background: none; padding: 0; font-weight: 700; font-size: var(--t-sm); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 0; border-top: 2px solid currentColor; }
.service { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: start; padding-block: clamp(24px, 4vw, 44px); border-bottom: 2px solid currentColor; position: relative; }
.service h3 { margin: 0; font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--t-lg); line-height: .95; }
.service h3 em { font-family: var(--f-serif); font-weight: 400; display: block; }
.service p { margin: 0; max-width: 46ch; }
.service .from { font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 12px; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.process li { list-style: none; counter-increment: s; border-radius: var(--r-md); padding: 22px; }
.process li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bubble); color: #fff; font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; margin-bottom: 18px; }
.process h4 { margin: 0 0 6px; font-size: 1.2rem; }
.process p { margin: 0; font-size: var(--t-sm); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; padding: 0; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Historia ---------- */
.timeline { position: relative; display: grid; gap: clamp(60px, 10vw, 140px); padding-left: clamp(28px, 6vw, 80px); }
.timeline::before { content: ""; position: absolute; left: clamp(8px, 2vw, 24px); top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: clamp(8px, 2vw, 24px); top: 0; width: 2px; height: 100%; background: var(--bubble); transform-origin: top; transform: scaleY(0); }
.moment { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; }
.moment::before { content: ""; position: absolute; left: calc(-1 * clamp(28px, 6vw, 80px) + clamp(8px, 2vw, 24px) - 8px); top: .6em; width: 18px; height: 18px; border-radius: 50%; background: var(--milk); border: 3px solid var(--bubble); }
.moment .when { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--bubble); }
.moment h3 { margin: .1em 0 .4em; font-weight: 800; font-variation-settings: "wdth" 75; font-size: var(--t-lg); line-height: .95; }
.moment .photo { position: relative; aspect-ratio: 1 / 1; inset: auto; width: min(100%, 440px); justify-self: center; margin-top: 12%; }
.moment:nth-child(even) .photo { transform: rotate(2.5deg); }
.moment:nth-child(odd) .photo { transform: rotate(-2.5deg); }
@media (max-width: 760px) { .moment { grid-template-columns: 1fr; } }

/* ---------- Newsletter / CTA ---------- */
.lead { border-radius: var(--r-lg); padding: clamp(28px, 6vw, 72px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.lead form { display: flex; gap: 8px; flex-wrap: wrap; }
.lead input { flex: 1 1 220px; padding: 1em 1.2em; border-radius: 999px; border: 1.5px solid var(--ink); background: rgba(255,255,255,.85); font: inherit; }
.lead .ok { font-weight: 700; margin-top: 10px; min-height: 1.5em; }
@media (max-width: 860px) { .lead { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--milk); padding-top: clamp(80px, 12vw, 160px); position: relative; overflow: hidden; isolation: isolate; }
.footer-cta { text-align: center; }
.footer-cta .display { font-size: clamp(3rem, 11vw, 10rem); }
.footer-cta .btn { margin-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-top: clamp(80px, 12vw, 160px); padding-block: 40px; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--t-sm); }
.footer-grid h4 { margin: 0 0 14px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; color: var(--blush); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; color: var(--lime); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px 28px; font-size: var(--t-xs); opacity: .6; border-top: 1px solid rgba(255,255,255,.12); }
.footer-giant { font-family: var(--f-serif); font-style: italic; font-size: clamp(5rem, 26vw, 24rem); line-height: .75; text-align: center; margin: 0; color: var(--bubble); letter-spacing: -.03em; transform: translateY(12%); user-select: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Revelados ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .story__step { position: static; opacity: 1; transform: none; margin-bottom: 40px; }
  .manifesto .w { opacity: 1; }
}
