/*
Theme Name: FuerteEnCasa
Theme URI: https://fuerteencasa.es/
Author: Álvaro Benito Juárez
Description: Tema premium para blogs de entrenamiento en casa. Hero con imagen, secciones por objetivo con código de color, blog, menú fijo, animaciones suaves, huecos de Google AdSense, SEO básico y fuentes alojadas en el propio tema.
Version: 2.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fuerteencasa
*/

/* =========================================================
   1. Fuentes y tokens
   ========================================================= */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-var.woff2") format("woff2-variations"), url("assets/fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Base: suelo de caucho y tiza */
	--caucho: #1b1e22;
	--caucho-2: #262a30;
	--tiza: #f4f5f2;
	--papel: #ffffff;
	--tinta: #1b1e22;
	--gris: #5b616b;
	--linea: #e1e3de;

	/* Discos olímpicos: un color por objetivo */
	--disco-rojo: #d7263d;      /* masa muscular */
	--disco-azul: #1f4fd8;      /* fuerza y acción principal */
	--disco-azul-osc: #183fae;
	--disco-amarillo: #f2b705;  /* pérdida de grasa */
	--disco-verde: #1e9e5a;     /* entrenamiento */
	--naranja: #e46f24;         /* nutrición */
	--violeta: #7148d6;         /* motivación */
	--turquesa: #12807f;        /* hábitos */

	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--header-h: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--tiza);
	color: var(--tinta);
	font: 400 1.0625rem/1.65 var(--font);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--disco-azul); text-underline-offset: .18em; }
a:hover { color: var(--disco-azul-osc); }
:focus-visible { outline: 3px solid var(--disco-amarillo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; font-stretch: 72%; line-height: 1.02; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--papel); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* =========================================================
   3. Botones
   ========================================================= */
.btn {
	--btn-bg: var(--disco-azul);
	--btn-fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 52px; padding: 0 1.6em;
	border: 2px solid var(--btn-bg); border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	font: 700 1rem/1 var(--font); font-stretch: 92%; letter-spacing: .01em;
	text-decoration: none; cursor: pointer;
	box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 70%, transparent);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--disco-azul-osc); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--caucho); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.btn--small { min-height: 42px; padding: 0 1.15em; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* =========================================================
   4. Cabecera fija
   ========================================================= */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
	background: rgba(244, 245, 242, .92);
	-webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--linea);
	transition: background .3s, border-color .3s, box-shadow .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
body { padding-top: var(--header-h); }
body.has-hero { padding-top: 0; }
.has-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-scrolled { box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .35); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-weight: 850; font-stretch: 75%; font-size: 1.55rem; letter-spacing: -.01em; }
.logo:hover { color: var(--tinta); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo img { width: auto; max-height: 40px; }
.has-hero .site-header:not(.is-scrolled) .logo { color: #fff; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a {
	display: block; padding: 9px 12px; border-radius: 999px;
	color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .9688rem;
	transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(27, 30, 34, .07); color: var(--tinta); }
.nav .current-menu-item > a, .nav .is-current > a { background: var(--caucho); color: #fff; }
.has-hero .site-header:not(.is-scrolled) .nav a { color: #fff; }
.has-hero .site-header:not(.is-scrolled) .nav a:hover { background: rgba(255, 255, 255, .14); }
.header-cta { flex: none; }
.menu-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: var(--caucho); color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s var(--ease), background .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) and (min-width: 941px) {
	.header-cta { display: none; }
	.nav a { padding: 9px 9px; font-size: .9375rem; }
}
@media (max-width: 940px) {
	.menu-toggle { display: inline-flex; }
	.header-cta { display: none; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; margin: 0; padding: 24px var(--gutter) 40px;
		background: var(--caucho); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav a, .has-hero .site-header:not(.is-scrolled) .nav a { color: #fff; font-size: 1.5rem; font-weight: 800; font-stretch: 75%; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
	.nav a:hover { background: none; color: var(--disco-amarillo); }
	.nav .current-menu-item > a, .nav .is-current > a { background: none; color: var(--disco-amarillo); }
	.nav .nav-cta { margin-top: 28px; }
	.nav .nav-cta a.btn, .has-hero .site-header:not(.is-scrolled) .nav .nav-cta a.btn { display: flex; width: 100%; border-radius: 999px; border: 0; padding: 0 1.6em; min-height: 56px; font-size: 1.125rem; font-stretch: 92%; color: #fff; }
	.menu-open .site-header, .menu-open.has-hero .site-header:not(.is-scrolled) { background: var(--caucho); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.menu-open .site-header .logo { color: #fff; }
	.menu-open .menu-toggle { background: rgba(255, 255, 255, .12); }
	.menu-open { overflow: hidden; }
}
@media (min-width: 941px) { .nav .nav-cta { display: none; } }

/* =========================================================
   5. Hero de portada
   ========================================================= */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 920px); display: flex; align-items: flex-end; background: var(--caucho); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 22, 26, .94) 0%, rgba(20, 22, 26, .78) 38%, rgba(20, 22, 26, .25) 75%, rgba(20, 22, 26, .1) 100%),
		linear-gradient(0deg, rgba(20, 22, 26, .85) 0%, rgba(20, 22, 26, 0) 40%);
}
.hero__inner { padding-block: calc(var(--header-h) + 64px) 56px; }
.hero__intro { font-size: 1.0625rem; color: #d6dae0; font-weight: 500; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; }
.hero__intro::before { content: ""; flex: none; width: 28px; height: 3px; margin-top: .75em; border-radius: 2px; background: var(--disco-amarillo); }
@media (max-width: 600px) { .hero__inner { padding-top: calc(var(--header-h) + 40px); } .hero__goals { margin-top: 40px; } .hero__goals p { width: 100%; } .goal-pill { font-size: .875rem; padding: 7px 12px 7px 8px; } }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.75rem); font-weight: 900; font-stretch: 64%; line-height: .9; letter-spacing: -.01em; max-width: 9.5em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: #e3e6ea; max-width: 34em; margin: 26px 0 32px; animation: fade .9s .35s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fade .9s .45s var(--ease) both; }
.hero__goals { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; animation: fade .9s .6s var(--ease) both; }
.hero__goals p { margin: 0 8px 0 0; font-weight: 600; color: #c7ccd3; }
.goal-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 600; font-size: .9688rem; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.goal-pill:hover { color: #fff; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.goal-pill i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 5px var(--c), inset 0 0 0 7px rgba(0, 0, 0, .25); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   6. Secciones de portada
   ========================================================= */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--caucho); color: #fff; }
.section--white { background: var(--papel); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 14em; }
.section-head p { max-width: 34em; color: var(--gris); margin: 0; font-size: 1.125rem; }
.section--dark .section-head p { color: #b9bfc8; }
.link-more { font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Beneficios */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--tinta); }
.benefit { padding: 28px 28px 8px 0; }
.benefit + .benefit { padding-left: 28px; border-left: 1px solid var(--linea); }
.benefit svg { width: 40px; height: 40px; color: var(--disco-azul); margin-bottom: 20px; }
.benefit h3 { font-size: 1.75rem; margin-bottom: 10px; }
.benefit p { color: var(--gris); margin: 0; }
@media (max-width: 960px) {
	.benefits { grid-template-columns: 1fr 1fr; }
	.benefit:nth-child(3) { padding-left: 0; border-left: 0; }
	.benefit:nth-child(n+3) { border-top: 1px solid var(--linea); }
}
@media (max-width: 560px) {
	.benefits { grid-template-columns: 1fr; }
	.benefit, .benefit + .benefit { padding: 24px 0 18px; border-left: 0; }
	.benefit + .benefit { border-top: 1px solid var(--linea); }
}

/* Objetivos */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.goal {
	position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 460px; padding: 26px; border-radius: var(--r-l); overflow: hidden;
	color: #fff; text-decoration: none; background: var(--caucho);
}
.goal:hover { color: #fff; }
.goal img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.goal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 26, 0) 25%, rgba(20, 22, 26, .92) 85%); }
.goal::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--c); }
.goal:hover img { transform: scale(1.05); }
.goal__count { position: absolute; top: 22px; left: 22px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 22, 26, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: .875rem; font-weight: 600; }
.goal h3 { font-size: clamp(1.9rem, 2.6vw, 2.5rem); margin-bottom: 10px; }
.goal p { color: #d5d9df; font-size: 1rem; margin-bottom: 18px; }
.goal__go { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--c); color: var(--c-fg, #fff); transition: transform .2s var(--ease); }
.goal:hover .goal__go { transform: translateX(4px); }
@media (max-width: 1100px) { .goals { grid-template-columns: 1fr 1fr; } .goal { min-height: 400px; } }
@media (max-width: 600px) { .goals { grid-template-columns: 1fr; } .goal { min-height: 340px; } }

/* Plan de inicio (secuencia real: 3 pasos) */
.start { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.start h2 { font-size: clamp(2.6rem, 5.5vw, 4.5rem); margin-bottom: 20px; }
.start__text p { color: #b9bfc8; font-size: 1.125rem; max-width: 30em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 26px 0 26px 84px; border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-stretch: 70%; font-size: 1.75rem; color: var(--caucho); background: var(--disco-amarillo); }
.steps h3 { font-size: 1.75rem; margin-bottom: 6px; }
.steps h3 a { color: #fff; text-decoration: none; }
.steps h3 a:hover { color: var(--disco-amarillo); }
.steps p { color: #b9bfc8; margin: 0; }
@media (max-width: 860px) { .start { grid-template-columns: 1fr; } }

/* Destacado + lista */
.latest { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; }
.feature { position: relative; display: block; border-radius: var(--r-l); overflow: hidden; background: var(--caucho); color: #fff; text-decoration: none; min-height: 480px; isolation: isolate; }
.feature:hover { color: #fff; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 22, 26, 0) 30%, rgba(20, 22, 26, .92) 90%); }
.feature__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; }
.feature h3 { font-size: clamp(2rem, 3.4vw, 3rem); margin: 12px 0 10px; }
.feature p { color: #d5d9df; margin: 0; max-width: 36em; }
.mini-list { display: grid; gap: 4px; align-content: start; }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-m); color: inherit; text-decoration: none; transition: background .2s; }
.mini:hover { background: var(--papel); color: inherit; }
.mini__img { aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--caucho-2); }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini h3 { font-size: 1.3rem; font-stretch: 78%; margin-top: 6px; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; } .feature { min-height: 400px; } }

/* Columnas del blog (nutrición, motivación, hábitos) */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { background: var(--papel); border-radius: var(--r-l); padding: 26px; border-top: 6px solid var(--c); }
.topic__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.topic__head h3 { font-size: 2rem; }
.topic__head a { font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--tinta); border-bottom: 2px solid var(--c); }
.topic > p { color: var(--gris); font-size: 1rem; }
.topic ul { list-style: none; margin: 18px 0 0; padding: 0; }
.topic li { border-top: 1px solid var(--linea); }
.topic li a { display: block; padding: 14px 0; color: var(--tinta); text-decoration: none; font-weight: 650; line-height: 1.35; }
.topic li a:hover { color: var(--c); }
@media (max-width: 960px) { .topics { grid-template-columns: 1fr; } }

/* Autor */
.author-band { display: grid; grid-template-columns: auto 1fr auto; gap: 28px 40px; align-items: center; background: var(--papel); border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); }
.author-band h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 10px; }
.author-band p { color: var(--gris); margin: 0; max-width: 46em; }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--caucho); color: var(--disco-amarillo); font-weight: 900; font-stretch: 70%; font-size: 2.2rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .author-band { grid-template-columns: 1fr; } }

/* Llamada final */
.cta-band { background: var(--disco-azul); color: #fff; border-radius: var(--r-l); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 320px; height: 320px; border-radius: 50%; z-index: -1; border: 46px solid rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 52px rgba(255, 255, 255, .05); }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 12px; }
.cta-band p { margin: 0; color: #dce4ff; font-size: 1.125rem; max-width: 34em; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* =========================================================
   7. Tarjetas y etiquetas
   ========================================================= */
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8438rem; font-weight: 700; color: var(--tinta); text-decoration: none; padding: 5px 11px 5px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--gris)) 14%, white); }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--gris)); }
.chip--dark { background: rgba(255, 255, 255, .14); color: #fff; }
a.chip:hover { color: var(--tinta); background: color-mix(in srgb, var(--c, var(--gris)) 24%, white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--papel); border-radius: var(--r-m); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(27, 30, 34, .45); }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--caucho-2); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img--empty { display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--gris)) 85%, black); }
.card__img--empty svg { width: 64px; height: 64px; opacity: .55; color: #fff; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.card h3 { font-size: 1.5rem; font-stretch: 78%; line-height: 1.08; }
.card h3 a { color: var(--tinta); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .chip { position: relative; z-index: 1; align-self: flex-start; }
.card p { color: var(--gris); font-size: .9688rem; margin: 0; }
.card__meta { margin-top: auto; padding-top: 6px; font-size: .875rem; color: var(--gris); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* =========================================================
   8. Archivos, blog y cabeceras de página
   ========================================================= */
.page-hero { background: var(--caucho); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--c, var(--disco-azul)); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-stretch: 66%; font-weight: 900; margin: 14px 0 14px; }
.page-hero p { color: #c3c8d0; font-size: 1.1875rem; max-width: 40em; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters a { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, border-color .2s; }
.filters a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, #fff); }
.filters a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.filters a.is-active { background: #fff; color: var(--caucho); border-color: #fff; }
.archive-body { padding-block: clamp(40px, 6vw, 72px); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--papel); color: var(--tinta); text-decoration: none; font-weight: 700; }
.pagination .page-numbers:hover { background: var(--caucho); color: #fff; }
.pagination .current { background: var(--disco-azul); color: #fff; }
.empty { text-align: center; padding: 48px 0; color: var(--gris); }

/* =========================================================
   9. Artículo
   ========================================================= */
.progress { position: fixed; left: 0; top: 0; z-index: 60; height: 4px; width: 100%; background: var(--disco-amarillo); transform-origin: 0 50%; transform: scaleX(0); }
.admin-bar .progress { top: 32px; }
.post-hero { padding: clamp(36px, 6vw, 72px) 0 0; }
.crumbs { font-size: .9375rem; color: var(--gris); margin-bottom: 22px; }
.crumbs a { color: var(--gris); }
.crumbs span[aria-hidden] { margin: 0 6px; }
.post-hero h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); font-stretch: 68%; font-weight: 900; line-height: .98; max-width: 15em; margin: 18px 0 18px; }
.post-hero .lead { font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: var(--gris); max-width: 40em; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .9688rem; color: var(--gris); }
.byline .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.byline strong { color: var(--tinta); }
.byline a { color: inherit; }
.post-cover { margin: clamp(28px, 4vw, 44px) 0 0; }
.post-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-l); background: var(--caucho-2); }
@media (max-width: 640px) { .post-cover img { aspect-ratio: 16 / 10; } }
.post-cover figcaption { font-size: .8125rem; color: var(--gris); padding: 8px 4px 0; text-align: right; }
.post-cover figcaption a { color: inherit; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); padding-block: clamp(32px, 5vw, 56px) clamp(56px, 8vw, 96px); align-items: start; }
@media (max-width: 1020px) { .post-layout { grid-template-columns: 1fr; } }
.post-main { min-width: 0; max-width: 720px; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.admin-bar .sidebar { top: calc(var(--header-h) + 56px); }
@media (max-width: 1020px) { .sidebar { position: static; } }
.side-box { background: var(--papel); border-radius: var(--r-m); padding: 22px; }
.side-box h2 { font-size: 1.5rem; margin-bottom: 12px; }
.side-box p { color: var(--gris); font-size: .9688rem; }
.side-box--dark { background: var(--caucho); color: #fff; }
.side-box--dark p { color: #b9bfc8; }
.side-cats { list-style: none; margin: 0; padding: 0; }
.side-cats li a { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--tinta); text-decoration: none; font-weight: 600; border-top: 1px solid var(--linea); }
.side-cats li:first-child a { border-top: 0; }
.side-cats li a i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.side-cats li a span { margin-left: auto; color: var(--gris); font-weight: 500; font-size: .875rem; }

.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.9rem, 3.2vw, 2.4rem); margin-top: 1.9em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.5rem; font-stretch: 80%; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--disco-azul); font-weight: 700; }
.prose strong { font-weight: 700; }
.prose a { font-weight: 600; }
.prose img { border-radius: var(--r-m); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.5; background: var(--papel); border-radius: var(--r-m); overflow: hidden; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.prose thead th { background: var(--caucho); color: #fff; font-weight: 700; border: 0; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose blockquote, .tip { margin-inline: 0; padding: 18px 22px; background: color-mix(in srgb, var(--disco-amarillo) 16%, white); border-left: 5px solid var(--disco-amarillo); border-radius: 0 var(--r-m) var(--r-m) 0; }
.tip p { margin: 0; }
.toc { background: var(--papel); border-radius: var(--r-m); padding: 20px 24px; }
.toc summary { cursor: pointer; font-weight: 800; font-stretch: 80%; font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--disco-azul); }
.toc[open] summary::after { content: "−"; }
.toc ol { margin: 14px 0 0; padding-left: 1.3em; font-size: 1rem; }
.toc li { margin: 6px 0; }
.toc a { color: var(--tinta); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--disco-azul); text-decoration: underline; }
.note-health { margin-top: 40px; padding: 18px 22px; border-radius: var(--r-m); background: var(--papel); border: 1px solid var(--linea); color: var(--gris); font-size: .9688rem; }
.author-box { margin-top: 28px; display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--r-m); background: var(--caucho); color: #fff; }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
.author-box p { margin: 0; color: #c3c8d0; font-size: 1rem; }
.author-box strong { display: block; color: #fff; font-size: 1.25rem; font-weight: 800; font-stretch: 80%; margin-bottom: 4px; }
.author-box a { color: var(--disco-amarillo); }
.related { padding-block: clamp(48px, 7vw, 88px); background: var(--papel); }
.related h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 32px; }
.related .card { background: var(--tiza); }

/* Páginas legales y estáticas */
.page-body { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.page-body .prose { max-width: 760px; }

/* =========================================================
   10. Anuncios de Google AdSense
   ========================================================= */
.ad { margin: 36px auto; text-align: center; max-width: 100%; }
.ad__label { display: block; font-size: .75rem; color: var(--gris); margin-bottom: 6px; letter-spacing: .02em; }
.ad ins { display: block; min-height: 100px; }
.ad--home { max-width: 970px; padding-inline: var(--gutter); }
.ad--sidebar ins { min-height: 250px; }
.ad--feed { grid-column: 1 / -1; margin: 8px 0; }
.prose .ad { margin-block: 2em; }

/* =========================================================
   11. Pie de página
   ========================================================= */
.site-footer { background: var(--caucho); color: #b9bfc8; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .9688rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font-size: 1.25rem; font-stretch: 85%; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #e3e6ea; text-decoration: none; }
.site-footer a:hover { color: var(--disco-amarillo); }
.footer-note { font-size: .875rem; color: #8d949e; margin-top: 16px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .875rem; color: #8d949e; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Buscador y 404 */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form input[type="search"] { flex: 1; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--linea); font: inherit; background: var(--papel); }
.search-form input[type="search"]:focus { border-color: var(--disco-azul); outline: none; }

/* =========================================================
   12. Animaciones al hacer scroll
   ========================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-stagger].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-stagger].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-stagger].is-in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-stagger].is-in > *:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1; transform: none; }
}

/* WordPress */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--gris); }
