/* ==========================================================================
   FDV — sistema de diseño
   Todos los valores salen de aquí. Si necesitas un número mágico, añade un token.
   ========================================================================== */

@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/rubik-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Rubik";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url("../fonts/rubik-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* Marca: el rosa del foro. No se toca. */
	--c-brand: #e91e63;
	--c-brand-ink: #b0124a;      /* rosa para texto sobre claro (AA) */
	--c-brand-soft: #fde7ef;
	--c-brand-tint: #fff4f8;

	/* Neutros cálidos (los mismos tonos que el foro sin el azul) */
	--c-paper: #faf7f5;
	--c-surface: #ffffff;
	--c-sunken: #f3eeeb;
	--c-line: #e8e0dc;
	--c-line-strong: #d6cbc6;
	--c-ink: #1f1a1c;
	--c-ink-2: #4a4145;
	--c-ink-3: #6e6368;
	--c-ok: #2e7d32;
	--c-warn: #b25e00;
	--c-warn-soft: #fff4e5;
	--c-info-soft: #eef6f5;

	/* Tipografía */
	--font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs--1: 0.875rem;
	--fs-0: 1rem;
	--fs-1: 1.125rem;
	--fs-2: 1.375rem;
	--fs-3: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	--fs-4: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
	--fs-5: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
	--lh-tight: 1.08;
	--lh-snug: 1.25;
	--lh-body: 1.65;

	/* Espacio (escala 4px) */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4.5rem;
	--s-9: 6.5rem;

	/* Formas */
	--r-1: 8px;
	--r-2: 14px;
	--r-3: 22px;
	--r-pill: 999px;
	--sh-1: 0 1px 2px rgba(31, 26, 28, .06), 0 1px 1px rgba(31, 26, 28, .04);
	--sh-2: 0 10px 30px -12px rgba(31, 26, 28, .18), 0 2px 6px rgba(31, 26, 28, .05);
	--sh-brand: 0 12px 28px -10px rgba(233, 30, 99, .45);

	/* Contenedores */
	--w-page: 1200px;
	--w-text: 44rem;
	--gutter: clamp(1rem, 4vw, 2rem);

	--ease: cubic-bezier(.2, .7, .2, 1);
	--hub: var(--c-brand);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-ink);
	font: 400 var(--fs-0)/var(--lh-body) var(--font);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-brand-ink); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--c-brand); }
h1, h2, h3, h4 { line-height: var(--lh-snug); margin: 0 0 var(--s-4); letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 var(--s-4); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--c-brand-soft); }
.skip-link { position: absolute; left: -999px; top: var(--s-2); z-index: 100; background: var(--c-ink); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-1); }
.skip-link:focus { left: var(--s-2); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(var(--w-text) + 2 * var(--gutter)); }
.eyebrow { font-size: var(--fs--1); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-3); margin: 0 0 var(--s-3); }
.lead { font-size: var(--fs-1); color: var(--c-ink-2); }
.muted { color: var(--c-ink-3); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
	min-height: 48px; padding: var(--s-3) var(--s-5);
	border: 2px solid transparent; border-radius: var(--r-pill);
	font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--c-brand); color: #fff; box-shadow: var(--sh-brand); }
.btn--primary:hover { background: #d81557; color: #fff; }
.btn--ghost { background: transparent; border-color: var(--c-line-strong); color: var(--c-ink); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--small { min-height: 40px; padding: var(--s-2) var(--s-4); font-size: var(--fs--1); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(250, 247, 245, .9);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.site-header__in { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--c-ink); flex-shrink: 0; }
.brand img { width: 86px; height: 37px; object-fit: contain; }
.brand__name { padding-left: var(--s-3); border-left: 1px solid var(--c-line-strong); }
@media (max-width: 420px) { .brand__name span { display: none; } }
.brand__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1; }
.brand__name span { display: block; font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink-3); margin-top: 3px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); align-items: center; }
.nav a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-pill); color: var(--c-ink-2); font-weight: 500; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-ink); background: var(--c-sunken); }
.nav .nav__community a { color: var(--c-brand-ink); }
.nav .nav__community a::after { content: " ↗"; font-size: .8em; }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--c-ink); }
.header-search:hover { background: var(--c-sunken); color: var(--c-ink); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--c-ink); margin: auto; position: relative; transition: transform .2s var(--ease); content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.header-search { margin-left: 0; }
	.nav { position: fixed; inset: 68px 0 auto 0; background: var(--c-paper); border-bottom: 1px solid var(--c-line); padding: var(--s-4) var(--gutter) var(--s-6); display: none; box-shadow: var(--sh-2); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav a { padding: var(--s-3) var(--s-4); font-size: var(--fs-1); }
}

/* ---------- migas ---------- */
.crumbs { font-size: var(--fs--1); color: var(--c-ink-3); margin: var(--s-5) 0 var(--s-4); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); color: var(--c-line-strong); }
.crumbs a { color: var(--c-ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--c-brand-ink); text-decoration: underline; }

/* ---------- hero de portada ---------- */
.hero { padding: var(--s-8) 0 var(--s-7); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--s-7); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 800; letter-spacing: .14em; font-size: var(--fs--1); color: var(--c-brand-ink); text-transform: uppercase; margin-bottom: var(--s-4); }
.hero__kicker::before { content: ""; width: 28px; height: 3px; background: var(--c-brand); border-radius: 2px; }
.hero h1 { font-size: var(--fs-5); line-height: var(--lh-tight); font-weight: 800; letter-spacing: -.035em; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--c-brand); }
.hero__lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); color: var(--c-ink-2); max-width: 34ch; margin-bottom: var(--s-6); }
.hero__art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: end; width: 100%; }

@media (max-width: 900px) {
	.hero { padding: var(--s-6) 0 var(--s-5); }
	.hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
	.hero__art { display: none; }
}

/* Tarjeta ilustrativa del hero: progreso de un reto (geometría, sin fotos) */
.demo-card { position: absolute; background: var(--c-surface); border-radius: var(--r-3); box-shadow: var(--sh-2); padding: var(--s-5); }
.demo-card--ring { inset: 6% 12% auto auto; width: 62%; }
.demo-card--streak { inset: auto auto 6% 0; width: 70%; }
.demo-card__label { font-size: var(--fs--1); color: var(--c-ink-3); margin: 0 0 var(--s-2); }
.demo-card__big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.demo-card__big small { font-size: 1rem; font-weight: 500; color: var(--c-ink-3); letter-spacing: 0; }
.ring { width: 100%; aspect-ratio: 1; }
.ring circle { fill: none; stroke-width: 12; }
.ring .ring__bg { stroke: var(--c-sunken); }
.ring .ring__fg { stroke: var(--c-brand); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 327; stroke-dashoffset: 327; animation: ring-in 1.4s .3s var(--ease) forwards; }
@keyframes ring-in { to { stroke-dashoffset: 98; } }
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: var(--s-3); }
.dots i { aspect-ratio: 1; border-radius: 6px; background: var(--c-sunken); }
.dots i.on { background: var(--c-brand); }
.dots i.miss { background: repeating-linear-gradient(45deg, var(--c-sunken), var(--c-sunken) 3px, var(--c-line) 3px, var(--c-line) 6px); }
.blob { position: absolute; border-radius: 50%; filter: blur(0); z-index: -1; }
.blob--a { width: 70%; aspect-ratio: 1; background: var(--c-brand-soft); top: 0; right: 0; }
.blob--b { width: 26%; aspect-ratio: 1; background: #ffe0b2; bottom: 18%; right: 4%; }

/* ---------- selector "Quiero…" ---------- */
.picker { margin-top: var(--s-2); }
.picker__label { font-weight: 700; font-size: var(--fs-1); margin: 0 0 var(--s-3); }
.picker__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-3); }
.pick {
	--hub: var(--c-brand);
	display: flex; align-items: center; gap: var(--s-3);
	min-height: 64px; padding: var(--s-3) var(--s-4);
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2);
	color: var(--c-ink); text-decoration: none; font-weight: 600; line-height: 1.25;
	transition: transform .15s var(--ease), border-color .15s, box-shadow .15s;
}
.pick:hover { transform: translateY(-2px); border-color: var(--hub); box-shadow: 0 10px 24px -14px var(--hub); color: var(--c-ink); }
.pick__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--hub) 12%, white); color: var(--hub); }
.pick__icon svg { width: 22px; height: 22px; }
.pick__arrow { margin-left: auto; color: var(--c-ink-3); transition: transform .15s var(--ease); }
.pick:hover .pick__arrow { transform: translateX(3px); color: var(--hub); }

/* ---------- secciones ---------- */
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--alt { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.section--ink { background: var(--c-ink); color: #f6efec; }
.section--ink .eyebrow, .section--ink .muted { color: #bfb2b6; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section__head h2 { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; margin: 0; max-width: 20ch; }
.section__head p { margin: var(--s-2) 0 0; color: var(--c-ink-3); max-width: 52ch; }
.section__more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__more::after { content: " →"; }

/* ---------- rejillas y tarjetas ---------- */
.grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }

.card {
	--hub: var(--c-brand);
	position: relative; display: flex; flex-direction: column;
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3);
	padding: var(--s-5); min-height: 100%;
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--c-line-strong); }
.card__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); border-radius: var(--r-3) var(--r-3) 0 0; overflow: hidden; aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--hub) 10%, white); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__meta { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs--1); color: var(--c-ink-3); margin-bottom: var(--s-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--hub); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hub); }
.card__title { font-size: var(--fs-2); line-height: 1.22; margin: 0 0 var(--s-3); }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card__title a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.card__excerpt { color: var(--c-ink-2); margin: 0; }
.card__foot { margin-top: auto; padding-top: var(--s-4); font-size: var(--fs--1); color: var(--c-ink-3); display: flex; gap: var(--s-3); align-items: center; }

.card--tool { border-top: 5px solid var(--hub); }
.card--tool .card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--hub) 12%, white); color: var(--hub); margin-bottom: var(--s-4); }
.card--tool .card__icon svg { width: 28px; height: 28px; }

.card--reto { background: linear-gradient(160deg, color-mix(in srgb, var(--hub) 9%, white), var(--c-surface) 60%); }
.card--reto .days-badge { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; color: var(--hub); margin-bottom: var(--s-3); }
.card--reto .days-badge small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--c-ink-3); }

.card--story { background: var(--c-surface); }
.card--story blockquote { margin: 0 0 var(--s-4); font-size: var(--fs-1); color: var(--c-ink-2); }
.card--feature { grid-column: span 2; padding: var(--s-6); }
.card--feature .card__title { font-size: var(--fs-3); }
@media (max-width: 720px) { .card--feature { grid-column: auto; padding: var(--s-5); } }

/* ---------- hubs (portada de sección) ---------- */
.hub-hero { padding: var(--s-6) 0 var(--s-7); border-bottom: 1px solid var(--c-line); background: linear-gradient(180deg, color-mix(in srgb, var(--hub) 8%, var(--c-paper)), var(--c-paper)); }
.hub-hero__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--hub); color: #fff; margin-bottom: var(--s-4); }
.hub-hero__icon svg { width: 34px; height: 34px; }
.hub-hero h1 { font-size: var(--fs-5); font-weight: 800; letter-spacing: -.035em; line-height: var(--lh-tight); max-width: 16ch; }
.hub-hero .lead { max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.chips a { display: inline-block; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink-2); font-weight: 500; font-size: var(--fs--1); }
.chips a:hover, .chips a[aria-current="page"] { border-color: var(--c-ink); color: var(--c-ink); }

/* ---------- artículo ---------- */
.article-head { padding: var(--s-4) 0 var(--s-6); }
.article-head h1 { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: var(--s-4); }
.article-head .lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.byline { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); align-items: center; font-size: var(--fs--1); color: var(--c-ink-3); padding-top: var(--s-4); border-top: 1px solid var(--c-line); margin-top: var(--s-5); }
.byline strong { color: var(--c-ink); font-weight: 600; }
.byline a { color: inherit; }
.article-layout { display: grid; grid-template-columns: minmax(0, var(--w-text)) 280px; gap: var(--s-8); justify-content: center; padding-bottom: var(--s-8); }
.article-layout--wide { grid-template-columns: minmax(0, var(--w-text)); }
.article-aside { position: relative; }
.article-aside__sticky { position: sticky; top: 90px; display: grid; gap: var(--s-5); }
@media (max-width: 1080px) { .article-layout { grid-template-columns: minmax(0, var(--w-text)); } .article-aside { display: none; } }

.toc { font-size: var(--fs--1); border-left: 2px solid var(--c-line); padding-left: var(--s-4); }
.toc p { font-weight: 700; color: var(--c-ink); margin-bottom: var(--s-2); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.toc a { color: var(--c-ink-3); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover, .toc a.is-active { color: var(--c-brand-ink); }
.toc-inline { margin: 0 0 var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-4) var(--s-5); }
.toc-inline summary { cursor: pointer; font-weight: 600; }
.toc-inline ol { margin: var(--s-3) 0 0; padding-left: var(--s-5); }
@media (min-width: 1081px) { .toc-inline { display: none; } }

/* Prosa editorial */
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: var(--fs-3); font-weight: 800; letter-spacing: -.025em; margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font-size: var(--fs-2); margin: var(--s-6) 0 var(--s-3); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--c-brand); font-weight: 700; }
.prose strong { font-weight: 600; color: var(--c-ink); }
.prose img { border-radius: var(--r-2); }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption { font-size: var(--fs--1); color: var(--c-ink-3); margin-top: var(--s-2); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose .wp-block-table { overflow-x: auto; margin: var(--s-6) 0; }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { font-weight: 700; background: var(--c-sunken); }
.prose hr { border: 0; height: 1px; background: var(--c-line); margin: var(--s-7) 0; }

/* Bloques editoriales (estilos de bloque del editor) */
.is-style-fdv-dato, .is-style-fdv-aviso, .notice {
	border-radius: var(--r-2); padding: var(--s-5); margin: var(--s-6) 0;
}
.is-style-fdv-dato { background: var(--c-brand-tint); border: 1px solid var(--c-brand-soft); }
.is-style-fdv-dato > :last-child, .is-style-fdv-aviso > :last-child { margin-bottom: 0; }
.is-style-fdv-aviso { background: var(--c-warn-soft); border-left: 4px solid var(--c-warn); }
.is-style-fdv-aviso strong:first-child { color: var(--c-warn); }
ol.is-style-fdv-pasos { list-style: none; padding: 0; counter-reset: paso; display: grid; gap: var(--s-4); }
ol.is-style-fdv-pasos > li { counter-increment: paso; position: relative; padding: var(--s-4) var(--s-5) var(--s-4) 4.2rem; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); margin: 0; }
ol.is-style-fdv-pasos > li::before { content: counter(paso); position: absolute; left: var(--s-4); top: var(--s-4); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--c-brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1rem; }
.is-style-fdv-destacada, .prose blockquote.is-style-fdv-destacada { border: 0; margin: var(--s-7) 0; padding: 0 0 0 var(--s-5); border-left: 4px solid var(--c-brand); font-size: var(--fs-2); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--c-ink); }
.prose blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 3px solid var(--c-line-strong); color: var(--c-ink-2); }
.is-style-fdv-cta { background: var(--c-ink); color: #f6efec; border-radius: var(--r-3); padding: var(--s-6); margin: var(--s-7) 0; }
.is-style-fdv-cta h2, .is-style-fdv-cta h3 { color: #fff; margin-top: 0; }
.is-style-fdv-cta a:not(.wp-block-button__link) { color: #ffb3cc; }
.fdv-fuentes { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--c-line); font-size: var(--fs--1); color: var(--c-ink-3); }
.fdv-fuentes h2 { font-size: var(--fs-1) !important; margin: 0 0 var(--s-3) !important; letter-spacing: 0 !important; }
.fdv-fuentes li::marker { color: var(--c-ink-3); font-weight: 400; }
.fdv-fuentes a { color: var(--c-ink-2); word-break: break-word; }
.wp-block-button__link { display: inline-flex; min-height: 48px; align-items: center; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); background: var(--c-brand); color: #fff; font-weight: 600; text-decoration: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0; }

.notice { background: var(--c-info-soft); border: 1px solid #cfe5e2; font-size: .98rem; }
.notice--health { background: var(--c-info-soft); }
.notice--aff { background: var(--c-sunken); border-color: var(--c-line); font-size: var(--fs--1); color: var(--c-ink-2); }
.notice--story { background: var(--c-brand-tint); border-color: var(--c-brand-soft); }
.notice--ok { background: #e8f5e9; border-color: #c8e6c9; }
.notice--error { background: #fdecea; border-color: #f5c6c0; }
.notice p:last-child { margin: 0; }

/* ---------- herramientas (UI) ---------- */
.tool {
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3);
	box-shadow: var(--sh-2); padding: clamp(var(--s-5), 3vw, var(--s-7)); margin: var(--s-6) 0;
}
.tool__title { font-size: var(--fs-2); font-weight: 800; margin: 0 0 var(--s-2); letter-spacing: -.02em; }
.tool__hint { color: var(--c-ink-3); font-size: var(--fs--1); margin: 0 0 var(--s-5); }
.tool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
.field { margin: 0 0 var(--s-4); }
.field label, .tool label { display: block; font-weight: 600; font-size: var(--fs--1); margin-bottom: var(--s-2); color: var(--c-ink-2); }
.field .req { font-weight: 400; color: var(--c-ink-3); }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="search"], select, textarea {
	width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4);
	background: var(--c-paper); border: 1.5px solid var(--c-line-strong); border-radius: var(--r-1);
	transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-brand-soft); }
.field--check { display: flex; gap: var(--s-3); align-items: flex-start; }
.field--check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--c-brand); flex: none; }
.field--check label { font-weight: 400; font-size: var(--fs--1); margin: 0; }
.fdv-hp { position: absolute; left: -9999px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--c-sunken); border-radius: var(--r-pill); }
.segmented button { border: 0; background: transparent; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); cursor: pointer; font-weight: 600; font-size: var(--fs--1); color: var(--c-ink-2); min-height: 40px; }
.segmented button[aria-pressed="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--sh-1); }
.presets { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.presets button { border: 1px solid var(--c-line); background: var(--c-paper); border-radius: var(--r-pill); padding: var(--s-2) var(--s-4); cursor: pointer; font-size: var(--fs--1); min-height: 40px; }
.presets button:hover { border-color: var(--c-ink); }

.result { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s-3); margin: var(--s-5) 0; }
.result__cell { background: var(--c-paper); border-radius: var(--r-2); padding: var(--s-4); }
.result__cell--hero { background: var(--c-ink); color: #fff; grid-column: 1 / -1; padding: var(--s-5); }
.result__label { font-size: var(--fs--1); color: var(--c-ink-3); margin: 0 0 4px; }
.result__cell--hero .result__label { color: #cdbfc4; }
.result__value { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.result__cell--hero .result__value { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.result__note { font-size: var(--fs--1); color: var(--c-ink-3); margin: var(--s-2) 0 0; }
.result__cell--hero .result__note { color: #cdbfc4; }
.compare { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); font-size: .98rem; }
.compare li { display: flex; gap: var(--s-3); align-items: center; }
.compare li::before { content: "≈"; font-weight: 800; color: var(--c-brand); }
.tool__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-5); }
.tool__privacy { font-size: var(--fs--1); color: var(--c-ink-3); display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-4); }

/* tracker */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: var(--s-4) 0; }
.cal__dow { text-align: center; font-size: .75rem; font-weight: 600; color: var(--c-ink-3); padding-bottom: 4px; }
.cal__day { aspect-ratio: 1; border: 1.5px solid var(--c-line); background: var(--c-paper); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--c-ink-2); display: grid; place-items: center; min-width: 0; padding: 0; }
.cal__day:hover { border-color: var(--hub); }
.cal__day[aria-pressed="true"] { background: var(--hub); border-color: var(--hub); color: #fff; }
.cal__day.is-today { box-shadow: inset 0 0 0 2px var(--c-ink); }
.cal__day:disabled { opacity: .35; cursor: default; }
.cal__pad { visibility: hidden; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cal-nav strong { font-size: var(--fs-1); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-surface); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { border-color: var(--c-ink); }

/* reto */
.reto-head { padding: var(--s-4) 0 var(--s-5); }
.reto-facts { display: flex; flex-wrap: wrap; gap: var(--s-3); list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.reto-facts li { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-pill); padding: var(--s-2) var(--s-4); font-size: var(--fs--1); }
.reto-facts strong { font-weight: 700; }
.progress { height: 12px; background: var(--c-sunken); border-radius: var(--r-pill); overflow: hidden; margin: var(--s-3) 0; }
.progress > span { display: block; height: 100%; width: 0; background: var(--hub); border-radius: inherit; transition: width .6s var(--ease); }
.days { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.day { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--c-paper); border: 1.5px solid var(--c-line); border-radius: var(--r-2); }
.day__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--c-surface); border: 1.5px solid var(--c-line); }
.day h3 { font-size: 1.05rem; margin: 0 0 2px; }
.day p { margin: 0; color: var(--c-ink-2); font-size: .98rem; }
.day.is-today { border-color: var(--hub); background: var(--c-surface); box-shadow: var(--sh-2); }
.day.is-today .day__n { background: var(--hub); color: #fff; border-color: var(--hub); }
.day.is-done .day__n { background: var(--c-ok); color: #fff; border-color: var(--c-ok); }
.day.is-done .day__n span { display: none; }
.day.is-done .day__n::after { content: "✓"; }
.day.is-future { opacity: .62; }
.day.is-future.is-open { opacity: 1; }
.day__check { white-space: nowrap; }
@media (max-width: 560px) { .day { grid-template-columns: auto 1fr; } .day__check { grid-column: 1 / -1; } }

/* compartir */
.share-card { display: none; margin-top: var(--s-5); padding: var(--s-5); border-radius: var(--r-2); background: var(--c-paper); border: 1px dashed var(--c-line-strong); }
.share-card.is-open { display: block; }
.share-card canvas { width: 100%; max-width: 360px; height: auto; border-radius: var(--r-2); box-shadow: var(--sh-2); margin: var(--s-4) 0; }

/* ---------- newsletter ---------- */
.nl { background: var(--c-ink); color: #f6efec; border-radius: var(--r-3); padding: clamp(var(--s-6), 5vw, var(--s-8)); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; position: relative; overflow: hidden; }
.nl::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; border: 40px solid rgba(233, 30, 99, .22); right: -120px; top: -140px; }
.nl h2 { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: var(--s-3); }
.nl p { color: #d8ccd0; margin: 0; }
.nl form { position: relative; z-index: 1; }
.nl__row { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.nl input[type="email"] { flex: 1 1 220px; background: #fff; border-color: transparent; color: var(--c-ink); }
.nl .field--check label { color: #d8ccd0; }
.nl .field--check a { color: #ffb3cc; }
.nl__msg { min-height: 1.5em; margin-top: var(--s-3); font-weight: 600; color: #fff; }
.nl--inline { grid-template-columns: 1fr; margin: var(--s-7) 0; }
@media (max-width: 800px) { .nl { grid-template-columns: 1fr; } }

/* ---------- comunidad ---------- */
.community { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5); align-items: center; padding: var(--s-6); border-radius: var(--r-3); border: 1px solid var(--c-line); background: var(--c-surface); }
.community__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--c-brand-soft); color: var(--c-brand); display: grid; place-items: center; }
.community h2 { font-size: var(--fs-3); margin: 0 0 var(--s-2); }
.community p { margin: 0; color: var(--c-ink-2); }
@media (max-width: 720px) { .community { grid-template-columns: 1fr; } }

/* ---------- vacío honesto ---------- */
.empty { padding: var(--s-6); border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-3); text-align: center; color: var(--c-ink-2); }
.empty h3 { color: var(--c-ink); }

/* ---------- publicidad ---------- */
.ad { margin: var(--s-6) auto; text-align: center; }
.ad__label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: var(--s-2); }
.ad--in-content { min-height: 280px; }
.ad--sidebar { min-height: 600px; }

/* ---------- búsqueda ---------- */
.search-hero { padding: var(--s-6) 0; }
.search-form { display: flex; gap: var(--s-2); max-width: 640px; }
.search-form input { flex: 1; }
.search-type { margin: var(--s-4) 0 0; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }

/* ---------- paginación ---------- */
.pagination { margin: var(--s-7) 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-surface); text-decoration: none; color: var(--c-ink); }
.pagination .current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- pie ---------- */
.site-footer { background: var(--c-ink); color: #cdbfc4; padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-8); font-size: .95rem; }
.site-footer a { color: #f6efec; text-decoration: none; }
.site-footer a:hover { color: #ffb3cc; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-6); }
.footer-grid h2 { font-size: var(--fs--1); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-brand p { max-width: 36ch; }
.footer-help { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); font-size: var(--fs--1); }
.footer-help strong { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- consentimiento (barra discreta, nunca modal) ---------- */
.consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 60; max-width: 560px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); box-shadow: var(--sh-2); padding: var(--s-4) var(--s-5); font-size: var(--fs--1); display: none; }
.consent.is-open { display: block; }
.consent p { margin: 0 0 var(--s-3); }
.consent__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ---------- página 404 / páginas simples ---------- */
.page-head { padding: var(--s-6) 0 var(--s-5); }
.page-head h1 { font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.big-404 { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--c-brand); margin: 0; }

/* Editor: alineaciones anchas dentro de la prosa */
.prose .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
@media (max-width: 1080px) { .prose .alignwide { margin-inline: 0; } }

/* Tablas del editor: sin el borde negro del core */
.prose .wp-block-table table, .prose .wp-block-table th, .prose .wp-block-table td { border: 0; }
.prose .wp-block-table thead { border-bottom: 0; }
.prose .wp-block-table th, .prose .wp-block-table td { border-bottom: 1px solid var(--c-line); }
.prose .wp-block-table { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.prose .wp-block-table th:first-child, .prose .wp-block-table td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .prose .wp-block-table th:first-child, .prose .wp-block-table td:first-child { white-space: normal; } }

/* ==========================================================================
   Pasada iPhone (2026-09-19)
   ========================================================================== */

/* [hidden] tiene que ganar siempre: .btn, .result__cell… declaran display y lo pisaban
   (en los retos se veían «Compartir», «Empezar de nuevo» y «Lo hice» antes de empezar). */
[hidden] { display: none !important; }

/* Cabecera: en 375–390 px el icono de búsqueda se salía de la pantalla. */
.header-search, .nav-toggle { flex-shrink: 0; }
.brand { min-width: 0; flex-shrink: 1; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
	.site-header__in { gap: var(--s-2); min-height: 60px; }
	.nav { inset: 60px 0 auto 0; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; }
	.brand img { width: 72px; height: 31px; }
	.brand__name { font-size: .95rem; padding-left: var(--s-2); }
}
@media (max-width: 380px) { .brand__name { display: none; } }

/* Safari < 16.2 no entiende color-mix(): fondo de reserva antes de cada uso. */
.pick__icon, .card--tool .card__icon, .card__media { background: var(--c-brand-tint); }
.pick__icon { background: color-mix(in srgb, var(--hub) 12%, white); }
.card--tool .card__icon { background: color-mix(in srgb, var(--hub) 12%, white); }
.card__media { background: color-mix(in srgb, var(--hub) 10%, white); }
@supports not (background: color-mix(in srgb, red 10%, white)) {
	.card--reto { background: var(--c-surface); }
	.hub-hero { background: var(--c-paper); }
}

/* Fecha y hora en iOS: sin esto salen centradas, con otra altura y sin borde. */
input[type="date"], input[type="time"], input[type="datetime-local"] {
	-webkit-appearance: none; appearance: none; display: block; text-align: left; line-height: 1.4;
}
input::-webkit-date-and-time-value { text-align: left; }
select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234a4145' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 1rem center; }
input, select, textarea { font-size: 16px; } /* < 16 px hace que iOS haga zoom al enfocar */
button { -webkit-tap-highlight-color: transparent; }

/* Zonas táctiles de al menos 44 px */
.section__more { display: inline-flex; align-items: center; min-height: 44px; }
.toc-inline summary { min-height: 44px; display: flex; align-items: center; }
.toc-inline a { display: inline-block; padding: 6px 0; }
.chips a { min-height: 40px; display: inline-flex; align-items: center; }

/* Migas: el título largo del final en una línea en móvil */
@media (max-width: 600px) {
	.crumbs li[aria-current] { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.crumbs ol { flex-wrap: wrap; }
}

/* Ficha del reto: el objetivo es una frase larga, no cabe en una píldora */
.reto-facts li { border-radius: var(--r-2); line-height: 1.4; }

/* Día del reto en móvil: número arriba, no centrado en un bloque alto */
@media (max-width: 560px) {
	.day { align-items: start; gap: var(--s-3); padding: var(--s-4) var(--s-4); }
	.day__n { width: 38px; height: 38px; }
	.day__check { width: 100%; }
	.tool { padding: var(--s-5) var(--s-4); border-radius: var(--r-2); }
	.tool__actions .btn { flex: 1 1 100%; }
	ol.is-style-fdv-pasos > li { padding: var(--s-4) var(--s-4) var(--s-4) 3.6rem; }
	ol.is-style-fdv-pasos > li::before { left: var(--s-3); width: 2rem; height: 2rem; }
	.nl { padding: var(--s-6) var(--s-5); }
	.nl__row .btn { width: 100%; }
	.community { padding: var(--s-5); }
	.section { padding: var(--s-7) 0; }
	.section__head { margin-bottom: var(--s-5); }
	.card--feature .card__title { font-size: var(--fs-2); }
	.prose { font-size: 1.0625rem; }
}

/* Barra de cookies y huecos con la «isla» y la barra de inicio del iPhone */
.consent { bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); }
.site-footer { padding-bottom: calc(var(--s-6) + env(safe-area-inset-bottom)); }
/* viewport-fit=cover: respetar la muesca en horizontal */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.brand { min-height: 44px; }
@media (max-width: 600px) {
	.prose .wp-block-table table { font-size: .9rem; }
	.prose th, .prose td { padding: var(--s-2) var(--s-3); }
}

/* ==========================================================================
   Pasada de diseño e interacción (2026-09-19 · v2)
   ========================================================================== */

/* ---------- Hero: textura de puntos y titular con subrayado vivo ---------- */
.hero { background:
	radial-gradient(circle at 1px 1px, rgba(31, 26, 28, .07) 1px, transparent 0) 0 0 / 22px 22px,
	linear-gradient(180deg, var(--c-paper), #fff5f8 70%, var(--c-paper)); }
.hero h1 em { position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; border-radius: 99px; background: var(--c-brand); opacity: .22; transform-origin: left; animation: fdv-underline 1s .35s var(--ease) both; }
@keyframes fdv-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Sin animación de entrada en el selector: está en el primer pantallazo y retrasaría el LCP. */
.picker__grid li:nth-child(1) .pick { animation-delay: .05s } .picker__grid li:nth-child(2) .pick { animation-delay: .09s }
.picker__grid li:nth-child(3) .pick { animation-delay: .13s } .picker__grid li:nth-child(4) .pick { animation-delay: .17s }
.picker__grid li:nth-child(5) .pick { animation-delay: .21s } .picker__grid li:nth-child(6) .pick { animation-delay: .25s }
.picker__grid li:nth-child(7) .pick { animation-delay: .29s } .picker__grid li:nth-child(8) .pick { animation-delay: .33s }
.picker__grid li:nth-child(9) .pick { animation-delay: .37s } .picker__grid li:nth-child(10) .pick { animation-delay: .41s }
@keyframes fdv-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pick:hover .pick__icon { transform: rotate(-8deg) scale(1.08); }
.pick__icon { transition: transform .25s var(--ease); }

/* ---------- Calculadora rápida del hero ---------- */
.hero__art { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; }
.quick { position: relative; z-index: 1; width: 100%; max-width: 400px; background: var(--c-surface); border-radius: var(--r-3); box-shadow: 0 30px 60px -28px rgba(176, 18, 74, .35), var(--sh-2); padding: var(--s-6); border: 1px solid var(--c-line); }
.quick__eyebrow { font-size: var(--fs--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-brand-ink); margin: 0 0 var(--s-4); }
.quick__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: 1.35rem; font-weight: 700; margin-bottom: var(--s-3); }
.quick__num { width: 5.2ch; min-height: 52px; padding: 0 var(--s-2); text-align: center; font-weight: 800; font-size: 1.4rem; border-radius: var(--r-1); }
.quick__sel { width: auto; min-height: 52px; font-weight: 700; font-size: 1.15rem; }
.quick__eq { display: flex; align-items: baseline; gap: var(--s-2); margin: var(--s-4) 0 var(--s-2); }
.quick__big { font-size: clamp(2.8rem, 2rem + 3vw, 3.8rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.quick__unit { font-weight: 600; color: var(--c-ink-3); }
.quick__bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin: var(--s-3) 0; }
.quick__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--c-brand), #ff7aa6); opacity: .25; transform-origin: bottom; animation: fdv-bar .8s var(--ease) both; }
.quick__bars i:last-child { opacity: 1; }
.quick__bars i:nth-child(2) { animation-delay: .05s; opacity: .35 } .quick__bars i:nth-child(3) { animation-delay: .1s; opacity: .45 }
.quick__bars i:nth-child(4) { animation-delay: .15s; opacity: .6 } .quick__bars i:nth-child(5) { animation-delay: .2s; opacity: .78 } .quick__bars i:nth-child(6) { animation-delay: .25s }
@keyframes fdv-bar { from { transform: scaleY(.1); } to { transform: none; } }
.quick__sub { color: var(--c-ink-2); font-size: var(--fs--1); margin: 0 0 var(--s-4); }
.quick__sub span { font-weight: 700; color: var(--c-ink); }
@media (max-width: 900px) {
	.hero__art { display: flex; margin-top: var(--s-4); }
	.hero__art .blob { display: none; }
	.quick { max-width: none; padding: var(--s-5); }
}

/* ---------- Test «¿Por dónde empiezo?» ---------- */
.quiz { --hub: var(--c-brand); position: relative; overflow: hidden; background: var(--c-ink); color: #f6efec; border-radius: var(--r-3); padding: clamp(var(--s-6), 5vw, var(--s-8)); }
.quiz::before { content: ""; position: absolute; width: 420px; aspect-ratio: 1; right: -140px; top: -180px; border-radius: 50%; border: 56px solid var(--hub); opacity: .22; transition: border-color .4s; }
.quiz__head h2 { color: #fff; font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; margin: 0 0 var(--s-5); }
.quiz .eyebrow { color: #cdbfc4; }
.quiz__q { font-weight: 700; font-size: var(--fs-1); margin-bottom: var(--s-4); }
.quiz__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); position: relative; }
.quiz__opt { --hub: var(--c-brand); min-height: 48px; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.quiz__opt:hover, .quiz__opt:focus-visible { background: var(--hub); border-color: var(--hub); transform: translateY(-2px); }
.quiz__step.is-in, .quiz__result.is-in { animation: fdv-pop .4s var(--ease) both; }
.quiz__back { margin-top: var(--s-4); background: none; border: 0; color: #cdbfc4; cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0; font: inherit; font-size: var(--fs--1); }
.quiz__card { position: relative; display: grid; gap: var(--s-2); background: #fff; color: var(--c-ink); border-radius: var(--r-2); padding: var(--s-5); text-decoration: none; border-top: 6px solid var(--hub); max-width: 640px; transition: transform .2s var(--ease); }
.quiz__card:hover { transform: translateY(-3px); color: var(--c-ink); }
.quiz__card strong { font-size: var(--fs-2); line-height: 1.2; }
.quiz__card span { color: var(--c-ink-2); }
.quiz__card em { font-style: normal; font-weight: 700; color: var(--c-brand-ink); }
.quiz__also { margin: var(--s-5) 0 var(--s-2); color: #cdbfc4; font-size: var(--fs--1); }
.quiz__list { margin: 0; padding-left: 1.2em; }
.quiz__list a, .quiz__foot a { color: #ffb3cc; }
.quiz__foot { margin: var(--s-4) 0 0; font-size: var(--fs--1); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.quiz__foot .quiz__back { margin: 0; }

/* ---------- Tarjetas: portadas generativas y hover ---------- */
.card__media { aspect-ratio: 16 / 9; }
.card__media img { transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card { overflow: hidden; }
.card--feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0 var(--s-6); align-items: center; }
.card--feature .card__media { grid-row: 1 / span 3; margin: calc(-1 * var(--s-6)) 0 calc(-1 * var(--s-6)) calc(-1 * var(--s-6)); border-radius: var(--r-3) 0 0 var(--r-3); height: calc(100% + 2 * var(--s-6)); aspect-ratio: auto; }
@media (max-width: 720px) {
	.card--feature { display: flex; }
	.card--feature .card__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-4); border-radius: var(--r-3) var(--r-3) 0 0; height: auto; aspect-ratio: 16 / 9; }
}
.card--tool:hover .card__icon, .card--reto:hover .days-badge { transform: scale(1.06) rotate(-3deg); }
.card--tool .card__icon, .card--reto .days-badge { transition: transform .25s var(--ease); }

/* ---------- Aparición al hacer scroll ---------- */
.js-reveal .section__head, .js-reveal .grid > *, .js-reveal .community, .js-reveal .nl, .js-reveal .quiz, .js-reveal .nextstep,
.js-reveal .prose > .wp-block-group, .js-reveal .prose > figure, .js-reveal .prose > .is-style-fdv-pasos, .js-reveal .day {
	opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-reveal .is-in { opacity: 1 !important; transform: none !important; }

/* ---------- Barra de lectura ---------- */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.readbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-brand), #ff8a65); transform: scaleX(0); transform-origin: left; }

/* ---------- Compartir ---------- */
.sharebar { margin: var(--s-7) 0 var(--s-5); padding: var(--s-5); border-radius: var(--r-2); background: var(--c-surface); border: 1px solid var(--c-line); }
.sharebar__label { font-weight: 700; margin: 0 0 var(--s-3); }
.sharebar__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sharebar__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); border: 1.5px solid var(--c-line-strong); background: var(--c-paper); color: var(--c-ink); font-weight: 600; font-size: var(--fs--1); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.sharebar__btn svg { width: 18px; height: 18px; }
.sharebar__btn:hover { transform: translateY(-2px); color: #fff; }
.sharebar__btn--whatsapp:hover { background: #1f8f4e; border-color: #1f8f4e; }
.sharebar__btn--telegram:hover { background: #2481cc; border-color: #2481cc; }
.sharebar__btn--x:hover { background: #111; border-color: #111; }
.sharebar__btn--facebook:hover { background: #1b5fd1; border-color: #1b5fd1; }
.sharebar__btn--native, .sharebar__btn.js-share-copy:hover, .sharebar__btn.is-done { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }

/* ---------- Siguiente paso ---------- */
.nextstep { --hub: var(--c-brand); position: relative; display: grid; gap: var(--s-2); margin: var(--s-7) 0 0; padding: var(--s-6) calc(var(--s-6) + 56px) var(--s-6) var(--s-6); border-radius: var(--r-3); background: var(--c-ink); color: #fff; text-decoration: none; overflow: hidden; transition: transform .2s var(--ease); }
.nextstep::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; right: -70px; bottom: -110px; border-radius: 50%; border: 34px solid var(--hub); opacity: .35; }
.nextstep:hover { transform: translateY(-3px); color: #fff; }
.nextstep__kicker { font-size: var(--fs--1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffb3cc; }
.nextstep__title { font-size: var(--fs-2); font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.nextstep__ex { color: #d8ccd0; font-size: .98rem; }
.nextstep__go { position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--hub); display: grid; place-items: center; transition: transform .2s var(--ease); }
.nextstep:hover .nextstep__go { transform: translateY(-50%) translateX(4px); }
.nextstep__go svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .nextstep { padding: var(--s-5); } .nextstep__go { position: static; transform: none; margin-top: var(--s-2); } .nextstep:hover .nextstep__go { transform: translateX(4px); } }

/* ---------- Hubs: arte geométrico en la cabecera ---------- */
.hub-hero { position: relative; overflow: hidden; }
.hub-hero::before, .hub-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hub-hero::before { width: 460px; aspect-ratio: 1; right: -120px; top: -160px; border: 64px solid var(--hub); opacity: .13; }
.hub-hero::after { width: 140px; aspect-ratio: 1; right: 18%; bottom: -60px; background: var(--hub); opacity: .1; }
.hub-hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 720px) { .hub-hero::before { width: 260px; border-width: 38px; right: -110px; top: -90px; } .hub-hero::after { display: none; } }

/* ---------- Artículo: portada ---------- */
.article-cover img { width: 100%; border-radius: var(--r-3); aspect-ratio: 16 / 9; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
	.js-reveal .section__head, .js-reveal .grid > * { opacity: 1; transform: none; }
}
.quick .quick__num { width: 5.4ch; flex: none; padding: 0 6px; -moz-appearance: textfield; }
.quick .quick__num::-webkit-outer-spin-button, .quick .quick__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quick .quick__sel { width: auto; flex: 0 1 auto; max-width: 100%; }
.quick__line { row-gap: var(--s-2); }
.card--feature .card__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
@media (min-width: 600px) { .hero .picker__grid { grid-template-columns: repeat(2, 1fr); } }
.toc-inline summary { list-style: none; justify-content: space-between; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--c-ink-2); border-bottom: 2px solid var(--c-ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .2s var(--ease); }
.toc-inline[open] summary::after { transform: rotate(-135deg); }
.card--feature { grid-column: 1 / -1; }
@media (min-width: 1000px) { .grid > .card--feature:first-child { grid-column: span 2; } .grid[style*="1fr"] > .card--feature { grid-column: 1 / -1; } }
.nl > *, .quiz > *, .nextstep > * { position: relative; z-index: 1; }
.nextstep > .nextstep__go { position: absolute; }
@media (max-width: 560px) { .nextstep > .nextstep__go { position: static; } }
.nl::after, .quiz::before, .nextstep::before { z-index: 0; }

/* ==========================================================================
   v3 · herramientas más visuales, portada, progreso de lectura, transiciones
   ========================================================================== */

/* Transiciones suaves entre páginas (Chrome/Edge 126+, Safari 18.2+). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
.site-header { view-transition-name: cabecera; }

/* Deslizador */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; min-height: 0; padding: 0; margin: 18px 0; border: 0; border-radius: 99px;
	background: linear-gradient(90deg, var(--hub) var(--p, 15%), var(--c-sunken) var(--p, 15%)); }
.range:focus { box-shadow: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 4px solid var(--hub); box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: grab; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--hub); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* Año en 365 puntos */
.yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12px, 1fr)); gap: 4px; margin: var(--s-3) 0 var(--s-4); }
.yeargrid i { aspect-ratio: 1; border-radius: 3px; background: var(--c-sunken); transition: background .35s var(--ease), transform .35s var(--ease); }
.yeargrid i.on { background: var(--hub); transform: scale(1.08); }
@media (max-width: 560px) { .yeargrid { grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 3px; } }

/* Barras de coste */
.bars { display: grid; gap: 10px; margin: var(--s-5) 0 var(--s-2); }
.bars__row { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: var(--s-3); align-items: center; font-size: var(--fs--1); }
.bars__row span { color: var(--c-ink-3); font-weight: 600; }
.bars__row i { height: 14px; background: var(--c-sunken); border-radius: 99px; overflow: hidden; }
.bars__row b { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #ff8fb1, var(--c-brand)); transition: width .7s var(--ease); }
.bars__row em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 5.5rem; text-align: right; }

/* Contador: anillo hasta la próxima marca + hitos */
.milestone { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-5); align-items: center; margin: var(--s-4) 0; padding: var(--s-4); background: var(--c-paper); border-radius: var(--r-2); }
.milestone__ring { width: 120px; height: 120px; }
.milestone__ring circle, .bigring circle { fill: none; stroke-width: 12; }
.milestone__ring .ring__bg, .bigring .ring__bg { stroke: var(--c-sunken); }
.milestone__ring .ring__fg, .bigring .ring__fg { stroke: var(--hub); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s var(--ease); animation: none; }
.badges { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--c-surface); border: 1px solid var(--c-line); color: var(--c-ink-3); }
.badges li.on { background: var(--hub); border-color: var(--hub); color: #fff; }
.badges li.next { border: 1.5px dashed var(--hub); color: var(--c-ink); }
@media (max-width: 560px) { .milestone { grid-template-columns: 1fr; justify-items: center; text-align: center; } .badges { justify-content: center; } }

/* Reto: anillo grande */
.reto-status { display: grid; grid-template-columns: 132px 1fr; gap: var(--s-5); align-items: center; }
.bigring { position: relative; width: 132px; height: 132px; }
.bigring svg { width: 100%; height: 100%; }
.bigring__n { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; }
.bigring__n b { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.bigring__n small { font-size: .95rem; color: var(--c-ink-3); margin-top: -6px; }
.bigring__n { grid-template-rows: auto auto; align-content: center; gap: 0; }
@media (max-width: 480px) { .reto-status { grid-template-columns: 96px 1fr; gap: var(--s-4); } .bigring { width: 96px; height: 96px; } .bigring__n b { font-size: 1.9rem; } }
.day.just-done .day__n { animation: fdv-check .6s var(--ease); }
@keyframes fdv-check { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Portada: sección de tiempo (oscura, con la herramienta en vivo) */
.time-sec { background: var(--c-ink); color: #f6efec; position: relative; overflow: hidden; }
.time-sec::before { content: ""; position: absolute; width: 620px; aspect-ratio: 1; left: -260px; bottom: -380px; border-radius: 50%; border: 80px solid rgba(233, 30, 99, .16); }
.time-sec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-7); align-items: center; position: relative; }
.time-sec h2 { color: #fff; font-size: var(--fs-4); font-weight: 800; letter-spacing: -.03em; }
.time-sec h2 em { font-style: normal; color: #ff7aa6; }
.time-sec .eyebrow, .time-sec__intro > p { color: #cdbfc4; }
.time-sec .section__more { color: #ffb3cc; }
.time-sec .tool { margin: 0; color: var(--c-ink); }
@media (max-width: 900px) { .time-sec__grid { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Progreso de lectura del tema */
.hubprogress { margin: var(--s-6) 0 0; padding: var(--s-4) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); }
.hubprogress__txt { font-size: var(--fs--1); color: var(--c-ink-2); }
.hubprogress.is-done { border-color: var(--hub); }
.card.is-read .card__meta::after { content: "✓ Leída"; margin-left: auto; font-weight: 700; color: var(--c-ok); background: #e8f5e9; padding: 2px 10px; border-radius: 99px; font-size: .78rem; }
.card.is-read .card__title a { color: var(--c-ink-2); }

/* Pie: declaración de marca */
.footer-statement { font-size: clamp(2.2rem, 1.2rem + 5vw, 5.5rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; color: #fff; margin: 0 0 var(--s-7); max-width: 14ch; }
.footer-statement em { font-style: normal; color: var(--c-brand); }
.time-sec .tool__title { display: none; }
.time-sec .tool h2, .time-sec .tool h3 { color: var(--c-ink); }
.result--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .result--3 .result__cell:not(.result__cell--hero) .result__value { font-size: 1.35rem; } }
.js-tool[data-tool="coste"] .result__cell:not(.result__cell--hero) { display: none; }
.js-tool[data-tool="coste"] .result { margin-bottom: 0; }
.tool__row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.result__value { overflow-wrap: anywhere; }
@media (max-width: 560px) { .js-tool[data-tool="tiempo"] .tool__row { grid-template-columns: 1fr; } }
