/* TikTok Wrapped — estilos de la web (portada, artículos, legales) */
:root {
  --bg: #ffffff;
  --ink: #0b0b10;
  --ink-2: #464652;
  --ink-3: #85859a;
  --line: #e7e7ee;
  --soft: #f3f3f6;
  --pink: #ff3d7f;
  --violet: #5b2eff;
  --lime: #c6ff3a;
  --cyan: #2ef0e4;
  --red: #fe2c55;
  --yellow: #ffd23f;
  --orange: #ff6b1a;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --hdr: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; margin: 0; font-variation-settings: "wdth" 88, "opsz" 72; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- cabecera ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr.is-scrolled { border-color: var(--line); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.02em; font-variation-settings: "wdth" 90; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo b { font-weight: 800; }
.nav { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav__pill { position: absolute; top: 0; left: var(--x, 0); width: var(--w, 0); height: 100%; border-radius: 999px; background: var(--soft); opacity: var(--o, 0); transition: left .35s var(--ease), width .35s var(--ease), opacity .2s; }
.hdr__end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-decoration: none; padding: 5px 9px; border-radius: 999px; color: var(--ink-3); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .nav { display: none; }
  .hdr__end { margin-left: auto; }
}
@media (max-width: 420px) {
  .hdr__end .btn { display: none; }
}

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s var(--spring), background-color .2s, border-color .2s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 14px 28px -14px rgba(11, 11, 16, .6); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #c9c9d4; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- portada: hero ---------- */
.hero { padding: 28px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 61, 127, .16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 61, 127, 0); } }
.hero__title { margin-top: 22px; font-size: clamp(46px, 7vw, 100px); line-height: .94; letter-spacing: -0.035em; font-variation-settings: "wdth" 84, "opsz" 96; }
.hl { position: relative; display: inline-block; padding: 0 .08em; z-index: 0; white-space: nowrap; }
.hl::before { content: ""; position: absolute; inset: .1em -.02em .02em; background: var(--lime); border-radius: .2em; z-index: -1; transform-origin: left center; transform: scaleX(0); animation: wipe .8s var(--ease) .7s forwards; }
@keyframes wipe { to { transform: scaleX(1); } }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }

.drop { position: relative; margin-top: 30px; max-width: 560px; display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; align-items: center; padding: 22px; border: 1.5px dashed #cdcdd8; border-radius: 26px; background: #fff; transition: border-color .2s, background-color .2s, transform .3s var(--spring); }
.drop.is-over { border-color: var(--violet); background: #f6f3ff; transform: scale(1.015); }
.drop__icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; }
.drop__icon svg { width: 26px; height: 26px; }
.drop__title { font-weight: 700; font-size: 18px; line-height: 1.25; }
.drop__hint { font-size: 14px; color: var(--ink-3); }
.drop__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.drop__err { grid-column: 1 / -1; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff0f3; color: #b0002f; font-size: 14px; line-height: 1.45; }
.hero__help { display: inline-flex; margin-top: 16px; font-weight: 600; font-size: 15px; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: #12a150; }

.hero__visual { position: relative; border-radius: 40px; aspect-ratio: 4 / 4.6; display: grid; place-items: center; overflow: hidden; container-type: size; background: radial-gradient(70% 55% at 50% 38%, #ffffff 0%, #f1f1f5 58%, #e6e6ec 100%); }
.stage-floor { position: absolute; left: 50%; bottom: 7%; width: 56%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 12, 50, .35), rgba(20, 12, 50, 0)); filter: blur(6px); }
.phone3d { perspective: 1600px; width: 100%; display: grid; place-items: center; }
.phone { position: relative; width: min(300px, 62cqw, 42cqh); aspect-ratio: 9 / 18.4; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #26262e, #0b0b10 40%); box-shadow: inset 0 0 0 1.5px #3a3a46, 30px 50px 70px -28px rgba(30, 14, 80, .45), 8px 14px 26px -12px rgba(0, 0, 0, .35); transform: rotateY(var(--ry, -14deg)) rotateX(var(--rx, 7deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform .8s var(--ease); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.phone::after { content: ""; position: absolute; inset: 11px; border-radius: 36px; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%); z-index: 3; }
.phone__island { position: absolute; z-index: 4; top: 20px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #050507; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #111; container-type: size; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .hero { padding-top: 18px; }
  .drop { padding: 18px; grid-template-columns: 1fr; }
  .drop__icon { display: none; }
  .drop__actions .btn { flex: 1 1 auto; }
  .hero__visual { border-radius: 28px; }
}

/* ---------- secciones ---------- */
.sec { padding: 96px 0; }
.sec--soft { background: var(--soft); }
.sec__head { max-width: 760px; margin-bottom: 44px; }
.sec__head h2 { font-size: clamp(34px, 4.6vw, 62px); }
.sec__head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }
.kicker { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); }
@media (max-width: 720px) { .sec { padding: 68px 0; } }

/* tarjetas "qué hay dentro" */
.reel { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, (100% - var(--wrap)) / 2) 22px; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel__item { flex: none; width: 232px; scroll-snap-align: center; margin: 0; }
.reel__card { position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--soft); container-type: size; box-shadow: 0 18px 40px -26px rgba(20, 10, 60, .5); transition: transform .45s var(--spring); }
.reel__item:hover .reel__card { transform: translateY(-6px) rotate(-1deg); }
.reel__item figcaption { margin-top: 14px; }
.reel__item h3 { font-size: 19px; letter-spacing: -0.015em; }
.reel__item p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.reel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: -28px; margin-bottom: 18px; }
.reel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, transform .2s var(--spring); }
.reel-nav button:hover { border-color: #bdbdc9; transform: scale(1.06); }
.reel-nav svg { width: 20px; height: 20px; }
@media (max-width: 720px) { .reel-nav { display: none; } .reel__item { width: 62vw; max-width: 250px; } }

/* cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.step { position: relative; padding: 30px 28px 32px; border: 1px solid var(--line); border-radius: 28px; background: #fff; overflow: hidden; }
.step__n { display: block; font: 800 120px/0.8 var(--display); font-variation-settings: "wdth" 75, "opsz" 96; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: -0.04em; margin-bottom: 26px; }
.step h3 { font-size: 24px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.step a { font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step__n { font-size: 90px; } }

/* conseguir los datos */
.get { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.olist { margin: 0; padding: 0; list-style: none; counter-reset: o; display: grid; gap: 14px; }
.olist li { position: relative; padding: 0 0 0 54px; counter-increment: o; min-height: 38px; }
.olist li::before { content: counter(o); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 15px/1 var(--sans); }
.olist strong { font-weight: 700; }
.path { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 28px; background: var(--soft); }
.path__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; font-weight: 600; font-size: 15px; }
.path__row i { width: 26px; height: 26px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-2); flex: none; }
.path__row:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.path__row:last-child i { background: var(--lime); color: var(--ink); }
.path__arrow { width: 2px; height: 10px; margin: -6px 0 -6px 30px; background: #cfcfd8; }
.tip { margin-top: 26px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--ink-2); }
.tip strong { color: var(--ink); }
.get__more { display: inline-flex; margin-top: 22px; }
@media (max-width: 860px) { .get { grid-template-columns: 1fr; } }

/* privacidad */
.priv { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.priv__big { font-size: clamp(38px, 5vw, 70px); line-height: .98; letter-spacing: -0.035em; }
.priv__big em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); }
.priv__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.priv__list li { padding: 22px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.priv__list h3 { font-size: 20px; }
.priv__list p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .priv { grid-template-columns: 1fr; } }

/* preguntas frecuentes */
.faq { max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font: 700 19px/1.35 var(--sans); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform .3s var(--ease), background-color .2s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 54px 24px 0; color: var(--ink-2); }
.faq__a p + p { margin-top: 10px; }
.faq__a a { font-weight: 600; }

/* llamada final */
.final { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(48px, 7vw, 96px) clamp(26px, 6vw, 80px); background: var(--violet); color: #fff; display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: end; }
.final h2 { font-size: clamp(40px, 6vw, 86px); line-height: .94; letter-spacing: -0.04em; }
.final p { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 520px; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.final__ring { position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid var(--pink); opacity: .9; pointer-events: none; }
.final > *:not(.final__ring) { position: relative; }
@media (max-width: 860px) { .final { grid-template-columns: 1fr; } .final__cta { justify-content: flex-start; } .final__ring { width: 300px; height: 300px; border-width: 50px; right: -140px; top: -140px; } }

/* anuncios */
.ad { width: min(var(--wrap), 100% - 40px); margin: 40px auto; min-height: 120px; text-align: center; }
.ad__label { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- pie ---------- */
.ftr { margin-top: 96px; border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ftr__about p { margin-top: 14px; color: var(--ink-3); max-width: 340px; }
.ftr h4 { font: 700 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; color: var(--ink-2); }
.ftr a:hover { color: var(--ink); text-decoration: underline; }
.ftr__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: 13px; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__about { grid-column: 1 / -1; } }

/* ---------- artículos y legales ---------- */
.doc { padding: 40px 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #c4c4cf; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.doc__head { max-width: 860px; }
.doc__head h1 { font-size: clamp(38px, 5.4vw, 72px); line-height: .98; letter-spacing: -0.035em; }
.doc__lead { margin-top: 20px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 720px; }
.doc__meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.doc__grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 64px; margin-top: 48px; align-items: start; }
.doc__aside { position: sticky; top: calc(var(--hdr) + 24px); }
.cta-card { padding: 26px; border-radius: 28px; background: var(--ink); color: #fff; }
.cta-card h3 { font-size: 26px; }
.cta-card p { margin-top: 10px; color: rgba(255, 255, 255, .75); font-size: 15px; }
.cta-card .btn { margin-top: 18px; width: 100%; }
@media (max-width: 960px) { .doc__grid { grid-template-columns: 1fr; } .doc__aside { position: static; } }

.prose { font-size: 18px; line-height: 1.72; color: #26262e; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); }
.prose h3 { margin-top: 1.7em; font-size: 22px; color: var(--ink); }
.prose a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); }
.prose code { font-size: .88em; padding: .12em .4em; border-radius: 6px; background: var(--soft); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.prose .table { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.prose .table table { margin: 0; }
.note { padding: 18px 20px; border-radius: 18px; background: var(--soft); font-size: 16px; }
.note--lime { background: #f3ffd9; }
.prose .olist { margin-top: 1.2em; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf h1 { font-size: clamp(60px, 12vw, 160px); letter-spacing: -0.05em; }
.nf p { margin: 16px auto 28px; color: var(--ink-2); max-width: 460px; }

/* ---------- animaciones de entrada ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
@keyframes rise { to { transform: none; } }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .w > span { transform: none; }
}
