/*
Theme Name: evoluzzionando
Theme URI: https://evoluzzionando.com
Author: Nando (evoluzzioNANDO)
Description: Tema de bloques para evoluzzionando.com y la sección Nando demo. Modo Auto / Día / Noche, tipografías alojadas en local y plantillas para fichas de apps.
Version: 0.4.7
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evoluzzionando
*/

/* ---------- Tokens de color (modo Día por defecto) ---------- */
:root {
	color-scheme: light;
	--evo-bg: #f6f7fd;
	--evo-surface: #ffffff;
	--evo-surface-alt: #eceffb;
	--evo-text: #0f1640;
	--evo-muted: #3f4887;
	--evo-accent: #0e7490;       /* cian oscuro: contraste AA con texto blanco */
	--evo-accent-2: #c01874;     /* rosa profundo */
	--evo-on-accent: #ffffff;
	--evo-on-accent-2: #ffffff;
	--evo-line: #cfd4ee;
	--evo-link: #0b6a85;
	--evo-glow: none;
}

/* Modo Noche explícito */
:root[data-theme="dark"] {
	color-scheme: dark;
	--evo-bg: #0a0f2c;
	--evo-surface: #141b52;
	--evo-surface-alt: #0f1640;
	--evo-text: #e6e9ff;
	--evo-muted: #b9c0ee;
	--evo-accent: #22d3ee;
	--evo-accent-2: #ff4fa3;
	--evo-on-accent: #04122e;
	--evo-on-accent-2: #1a0615;
	--evo-line: #2b3580;
	--evo-link: #67e8f9;
}

/* Modo Auto: sigue al sistema (también si aún no hay atributo) */
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]):not([data-theme="dark"]) {
		color-scheme: dark;
		--evo-bg: #0a0f2c;
		--evo-surface: #141b52;
		--evo-surface-alt: #0f1640;
		--evo-text: #e6e9ff;
		--evo-muted: #b9c0ee;
		--evo-accent: #22d3ee;
		--evo-accent-2: #ff4fa3;
		--evo-on-accent: #04122e;
		--evo-on-accent-2: #1a0615;
		--evo-line: #2b3580;
		--evo-link: #67e8f9;
	}
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--evo-text);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Cabecera ---------- */
.evo-header { border-bottom: 1px solid var(--evo-line); }
.evo-header .wp-block-site-title a, .evo-brand a { text-decoration: none; color: var(--evo-text); }
.evo-brand img { border-radius: 50%; display: block; }
.evo-nav a { text-decoration: none; font-weight: 500; color: var(--evo-text); }
.evo-nav a:hover { color: var(--evo-link); }

/* ---------- Selector de tema ---------- */
.evo-switch {
	display: inline-flex;
	gap: 2px;
	padding: 3px;
	border: 1.5px solid var(--evo-line);
	border-radius: 999px;
	background: transparent;
}
.evo-switch button {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--evo-text);
	font: 600 0.8125rem/1 Inter, system-ui, sans-serif;
	min-height: 44px;
	padding: 0 0.9rem;
	border-radius: 999px;
	cursor: pointer;
}
.evo-switch button[aria-pressed="true"] {
	background: var(--evo-accent-2);
	color: var(--evo-on-accent-2);
}

/* ---------- Tarjetas (toda la tarjeta es un enlace) ---------- */
.evo-card {
	position: relative;
	background: var(--evo-surface);
	border: 1.5px solid var(--evo-line);
	border-radius: 20px;
	padding: 1.75rem;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.evo-card:hover, .evo-card:focus-within { border-color: var(--evo-accent); }
.evo-card a { text-decoration: none; color: inherit; }
.evo-card a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.evo-card .evo-eyebrow { margin: 0; }
.evo-card .evo-more { margin-top: auto; font-weight: 600; color: var(--evo-link); }
@media (prefers-reduced-motion: no-preference) {
	.evo-card:hover { transform: translateY(-2px); }
}

.evo-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--evo-link);
}
.evo-pill {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 0.4rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--evo-accent-2);
	color: var(--evo-accent-2);
}
.evo-hero-ring {
	width: min(340px, 100%);
	aspect-ratio: 1 / 1;
	padding: 6px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--evo-accent), var(--evo-accent-2));
	margin-inline: auto;
}
.evo-hero-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.evo-step-num {
	font-family: var(--wp--preset--font-family--archivo);
	font-style: italic;
	font-weight: 900;
	font-size: 2.75rem;
	line-height: 1;
	color: var(--evo-accent-2);
	margin: 0;
}

/* ---------- Ficha técnica ---------- */
.evo-spec { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--evo-line); margin: 0; }
.evo-spec div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--evo-line); }
.evo-spec dt { color: var(--evo-muted); }
.evo-spec dd { margin: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 0.6rem; }
.evo-flag { width: 24px; height: 16px; border-radius: 2px; display: inline-block; vertical-align: middle; }

/* ---------- Pie ---------- */
.evo-footer { border-top: 1px solid var(--evo-line); font-size: 0.875rem; color: var(--evo-muted); }
.evo-footer a { color: var(--evo-muted); }
.evo-footer a:hover { color: var(--evo-text); }

/* ---------- Modo demo: aviso reutilizable por los plugins ---------- */
.evo-demo-banner {
	background: var(--evo-surface-alt);
	border: 1px dashed var(--evo-accent-2);
	border-radius: 12px;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
}

/* ---------- Maquetación de secciones ---------- */
.evo-accent-2 { color: var(--evo-accent-2); }
.evo-bar { padding-block: 1.25rem; gap: 1rem; }
.evo-main { padding-block: 0; }
.evo-page { padding-block: 3rem 5rem; }
.evo-brand-link { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--evo-text);
	font-family: var(--wp--preset--font-family--archivo); font-style: italic; font-weight: 900; font-size: 1.25rem; }

.evo-hero { gap: 3.5rem; padding-block: 5rem 4rem; }
.evo-hero-text { flex: 1 1 520px; min-width: 0; }
.evo-hero-ring { flex: 1 1 320px; }
.evo-hero .evo-shot { flex: 1 1 380px; min-width: 0; margin: 0; border: 1.5px solid var(--evo-line); border-radius: 20px; overflow: hidden; background: var(--evo-surface); min-height: 240px; }
.evo-hero h1 { margin-block: 0.75rem 0; }

.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--evo-text);
	border: 1.5px solid var(--evo-line);
}
.is-style-outline .wp-block-button__link:hover { border-color: var(--evo-accent); background: transparent; color: var(--evo-text); }

.evo-demo { background: var(--evo-surface-alt); border-block: 1px solid var(--evo-line); padding-block: 5rem; margin-block: 3rem; }
.evo-grid { gap: 1.5rem; margin-top: 2.5rem; }
.evo-card { display: flex; flex-direction: column; gap: 0.9rem; }
.evo-card > * { margin: 0; }
.evo-link-card { padding: 1.25rem 1.5rem; gap: 0.4rem; }

.evo-steps { padding-block: 4rem 2rem; }
.evo-steps .evo-step-num + h3 { margin-top: 0.5rem; }

.evo-about { gap: 3rem; padding-block: 4rem; }
.evo-about-text { flex: 1 1 480px; min-width: 0; }
.evo-about-links { flex: 1 1 320px; min-width: 0; gap: 0.75rem; }

.evo-contact {
	background: linear-gradient(120deg, var(--evo-surface), var(--evo-surface-alt));
	border: 1.5px solid var(--evo-line);
	border-radius: 28px;
	padding: 2.5rem;
	gap: 1.5rem;
	margin-block: 2rem 5rem;
}
.evo-contact h2 { margin: 0 0 0.5rem; }
.evo-contact p { margin: 0; }

.evo-two-col { gap: 3rem; padding-block: 3rem; align-items: flex-start; }
.evo-two-col > * { flex: 1 1 420px; min-width: 0; }
.evo-app { padding-bottom: 4rem; }

.wp-block-details { border: 1.5px solid var(--evo-line); border-radius: 16px; padding: 1rem 1.25rem; background: var(--evo-surface); margin-block: 0.75rem; }
.wp-block-details summary { font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
	.evo-hero { padding-block: 3rem 2rem; }
	.evo-demo { padding-block: 3rem; }
	.evo-contact { padding: 1.5rem; }
}

/* ======================= v0.2 ======================= */

/* Logos: versión día/noche y recuadros provisionales */
.evo-logo { display: inline-block; line-height: 0; max-width: 100%; }
.evo-logo img { max-width: 100%; height: auto; display: block; }
.evo-logo .l-night { display: none; }
:root[data-theme="dark"] .evo-logo .l-day { display: none; }
:root[data-theme="dark"] .evo-logo .l-night { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]):not([data-theme="dark"]) .evo-logo .l-day { display: none; }
	:root:not([data-theme="light"]):not([data-theme="dark"]) .evo-logo .l-night { display: block; }
}
.evo-ph {
	display: inline-flex; align-items: center; justify-content: center; text-align: center;
	border: 2px dashed var(--evo-accent-2); border-radius: 14px; color: var(--evo-muted);
	font-size: 0.8125rem; line-height: 1.35; padding: 6px; box-sizing: border-box; max-width: 100%;
}
.evo-ph--round { border-radius: 50%; }
.evo-brand-link { line-height: 0; }
.evo-foot-left { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: center; }
.evo-controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.evo-hero-logo { flex: 1 1 320px; display: flex; justify-content: center; }
.evo-demo-head, .evo-demo-page-head { gap: 2.5rem; margin-bottom: 2.5rem; }
.evo-demo-page-head { padding-block: 3rem 1.5rem; margin-bottom: 0; }
.evo-demo-logo { line-height: 0; }
.evo-demo-intro { flex: 1 1 320px; min-width: 0; }
.evo-section { padding-block: 2.5rem; }
.evo-section > h2 { margin-bottom: 1.5rem; }
.evo-about-teaser { padding-block: 4rem 1rem; gap: 2rem; }
.evo-landing { padding-bottom: 3rem; }
.evo-form-slot { flex: 1 1 520px; min-width: 0; }

/* Cuadrícula de apps (bloque evoluzzionando/app-grid) */
.evo-app-grid .evo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.evo-app-grid .evo-card[hidden] { display: none; }
.evo-app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.evo-app-icon { width: 72px; height: 72px; flex: none; aspect-ratio: 1; border-radius: 16px; object-fit: cover; display: block; } /* v0.4.7: no se aplasta con 4 banderas */
.evo-app-icon--empty {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--evo-surface-alt); border: 1.5px solid var(--evo-line);
	font-family: var(--wp--preset--font-family--archivo); font-style: italic; font-weight: 900; font-size: 2rem; color: var(--evo-accent-2);
}
.evo-langs { min-width: 0; display: inline-flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; justify-content: flex-end; }
.evo-lang { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; color: var(--evo-muted); }
.evo-flag { width: 24px; height: 16px; border-radius: 2px; display: inline-block; flex: none; }
.evo-flag-txt { font-size: 0.6875rem; font-weight: 700; line-height: 16px; text-align: center; background: var(--evo-surface-alt); border: 1px solid var(--evo-line); color: var(--evo-text); }
.evo-app-card h3 { margin: 0; }
.evo-app-desc { color: var(--evo-muted); font-size: 0.9375rem; }
.evo-app-card--soon { border-style: dashed; justify-content: center; }
.evo-app-card--soon .evo-more a::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.evo-filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; margin-top: 1rem; }
.evo-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.evo-chip {
	appearance: none; cursor: pointer; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
	border: 1.5px solid var(--evo-line); background: transparent; color: var(--evo-text); font: 600 0.875rem/1 Inter, system-ui, sans-serif;
}
.evo-chip[aria-pressed="true"] { background: var(--evo-accent); color: var(--evo-on-accent); border-color: var(--evo-accent); }
.evo-search {
	min-height: 44px; box-sizing: border-box; width: 260px; max-width: 100%; padding: 0 1.1rem; border-radius: 999px;
	border: 1.5px solid var(--evo-line); background: var(--evo-surface); color: var(--evo-text); font: 400 0.9375rem Inter, system-ui, sans-serif;
}
.evo-empty { color: var(--evo-muted); margin-top: 1.5rem; }
.evo-grid-more { margin-top: 2rem; }
.evo-grid-more a { text-decoration: none; background: var(--evo-accent-2); color: var(--evo-on-accent-2); }
.evo-link-card { gap: 0.4rem; }
.evo-link-card p { margin: 0; }

/* ---------- v0.3 ---------- */
.evo-flag-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.evo-flag-tag { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--evo-line); color: var(--evo-muted); }
.evo-flag-tag--star { background: var(--evo-accent); border-color: var(--evo-accent); color: var(--evo-on-accent); }
.evo-flag-tag--new { background: var(--evo-accent-2); border-color: var(--evo-accent-2); color: var(--evo-on-accent-2); }
.evo-flag-tag--pruebas { border-color: var(--evo-accent); color: var(--evo-accent); }
.evo-flag-tag--proximamente { border-style: dashed; }
.evo-app-card--later { opacity: 0.72; }
.evo-app-card--later:hover, .evo-app-card--later:focus-within { opacity: 1; }

.evo-support { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.25rem; margin-block: 3.5rem 1rem; }
@media (max-width: 760px) { .evo-support { grid-template-columns: 1fr; } }
.evo-support-main { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: 22px; background: linear-gradient(var(--evo-surface), var(--evo-surface)) padding-box, linear-gradient(120deg, var(--evo-accent), var(--evo-accent-2)) border-box; border: 2px solid transparent; }
.evo-support-ico { flex: none; width: 52px; height: 52px; padding: 11px; border-radius: 16px; background: color-mix(in srgb, var(--evo-accent) 16%, transparent); color: var(--evo-accent); }
.evo-support-main h2 { margin: 0 0 0.4rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.evo-support-main p, .evo-support-side p { color: var(--evo-muted); margin: 0 0 1rem; }
.evo-support-side { padding: 1.75rem; border-radius: 22px; border: 1.5px solid var(--evo-line); background: var(--evo-surface-alt); }
.evo-support-side h3 { margin: 0 0 0.4rem; }
.evo-support-buttons { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; }
.evo-support-btn { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .15s ease; }
.evo-support-btn:hover { transform: translateY(-1px); }
.evo-support-btn--kofi { background: var(--evo-accent); color: var(--evo-on-accent); }
.evo-support-btn--ghost { border: 1.5px solid var(--evo-line); color: var(--evo-text); }
.evo-support-btn--ghost:hover { border-color: var(--evo-accent); }
.evo-support-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; color: var(--evo-muted); }
.evo-support-pill { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: var(--evo-accent); color: var(--evo-on-accent) !important; font-weight: 700; text-decoration: none; }
.evo-support-pill--ghost { background: transparent; border: 1.5px solid var(--evo-line); color: var(--evo-text) !important; }
@media (prefers-reduced-motion: reduce) { .evo-support-btn { transition: none; } }

/* Formulario de contacto (evoCore, [evo_contacto]) */
.evo-cform .evo-form { display: grid; gap: 1rem; margin: 0; }
.evo-cform .evo-form p { margin: 0; }
.evo-cform label { display: block; font-weight: 600; font-size: 0.95rem; }
.evo-cform input[type=text], .evo-cform input[type=email], .evo-cform textarea { display: block; width: 100%; margin-top: 0.35rem; padding: 0.75rem 0.9rem; border-radius: 12px; border: 1.5px solid var(--evo-line); background: var(--evo-bg); color: var(--evo-text); font: inherit; }
.evo-cform textarea { min-height: 9rem; resize: vertical; }
.evo-cform input:focus, .evo-cform textarea:focus { outline: 2px solid var(--evo-accent); outline-offset: 1px; border-color: var(--evo-accent); }
.evo-cform .evo-check { position: relative; display: block; padding-left: 1.8rem; font-weight: 400; font-size: 0.9rem; line-height: 1.5; color: var(--evo-muted); }
.evo-cform .evo-check input { position: absolute; left: 0; top: 0.15rem; margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--evo-accent); }
.evo-cform button[type=submit] { justify-self: start; padding: 0.8rem 1.6rem; }
.evo-cform .evo-notice { margin-bottom: 1rem; }
.evo-contact-list { color: var(--evo-muted); padding-left: 1.2rem; }
.evo-contact-list li { margin-block: 0.35rem; }
.evo-notice { padding: 0.8rem 1rem; border-radius: 12px; border: 1.5px solid var(--evo-line); }
.evo-notice-ok { border-color: var(--evo-accent); }
.evo-notice-err { border-color: var(--evo-accent-2); }

.evo-lang-switch { display: inline-flex; gap: 0.15rem; margin-right: 0.6rem; padding: 0.2rem; border: 1.5px solid var(--evo-line); border-radius: 999px; }
.evo-lang-switch a { padding: 0.3rem 0.55rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-decoration: none; color: var(--evo-muted); }
.evo-lang-switch a[aria-current="true"] { background: var(--evo-accent); color: var(--evo-on-accent); }
.evo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }

/* ---------- v0.4 · Portada ---------- */
.evo-hero { padding-block: 4rem 3rem; }
.evo-hero-text { flex: 1 1 440px; }
.evo-hero-shot { flex: 1 1 520px; min-width: 0; margin: 0; }
.evo-hero-shot img { display: block; width: 100%; height: auto; }
.evo-home-content > .evo-hero:first-child { margin-top: 0; }

.evo-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	background: var(--evo-line);
	border: 1.5px solid var(--evo-line);
	border-radius: 20px;
	overflow: hidden;
	margin-block: 0 3rem;
}
.evo-stat { background: var(--evo-surface); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.2rem; }
.evo-stat strong {
	font-family: var(--wp--preset--font-family--archivo);
	font-style: italic;
	font-weight: 900;
	font-size: 2rem;
	line-height: 1.1;
	color: var(--evo-accent-2);
}
.evo-stat span { color: var(--evo-muted); font-size: 0.9375rem; }

.evo-featured {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: 2.5rem;
	background: linear-gradient(120deg, var(--evo-surface), var(--evo-surface-alt));
	border: 1.5px solid var(--evo-line);
	border-radius: 28px;
	padding: 1.5rem;
	margin-block: 1rem 2rem;
}
.evo-featured-img { display: block; border-radius: 18px; overflow: hidden; line-height: 0; background: #0a0f2c; }
.evo-featured-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.evo-featured-text { padding: 1rem 1.5rem 1rem 0; }
.evo-featured-text h2 { margin: 0.5rem 0 0.75rem; }
.evo-featured-desc { color: var(--evo-muted); margin: 0 0 1.5rem; }
.evo-featured:not(:has(.evo-featured-img)) { grid-template-columns: 1fr; }

.evo-step { background: var(--evo-surface); border: 1.5px solid var(--evo-line); border-radius: 20px; padding: 1.75rem; }
.evo-step > * { margin-block: 0; }
.evo-step h3 { margin-top: 0.75rem !important; }
.evo-step p:last-child { margin-top: 0.5rem; }
.evo-steps-grid { margin-top: 2rem; gap: 1.5rem; }

.evo-news { padding-block: 3rem 1rem; }
.evo-news h2 { margin: 0; }

@media (max-width: 900px) {
	.evo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.evo-featured { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
	.evo-featured-text { padding: 0.5rem; }
}
@media (max-width: 600px) {
	.evo-hero { gap: 2rem; padding-block: 2.5rem 1.5rem; }
	.evo-stat { padding: 1rem; }
	.evo-stat strong { font-size: 1.6rem; }
}
.evo-steps-grid { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)) !important; }
@media (min-width: 901px) {
	.wp-block-group.evo-hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 2rem; }
	.evo-hero-shot { margin-right: -2rem; }
}

/* ---------- v0.4.3 · relacionadas y autor ---------- */
.evo-related { margin-block: 3rem 0; }
.evo-related h2 { margin: 0 0 1rem; }
.evo-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 1rem; }
.evo-mini { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 1.5px solid var(--evo-line); border-radius: 18px; background: var(--evo-surface); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.evo-mini:hover, .evo-mini:focus-visible { transform: translateY(-2px); border-color: var(--evo-accent-2); }
.evo-mini-ico { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; }
.evo-mini-img { width: 112px; height: 70px; border-radius: 10px; flex: none; object-fit: cover; }
.evo-mini-text { display: grid; gap: .2rem; min-width: 0; }
.evo-mini-text span { color: var(--evo-muted); font-size: .9rem; line-height: 1.4; }
.evo-author { display: flex; gap: 1.25rem; align-items: flex-start; margin-block: 3rem 1rem; padding: 1.5rem; border: 1.5px solid var(--evo-line); border-radius: 22px; background: var(--evo-surface); }
.evo-author-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.evo-author p { margin: 0 0 .5rem; }
.evo-author-name { font-weight: 800; font-size: 1.15rem; }
.evo-author-links a { margin-right: .75rem; }
@media (max-width: 600px) { .evo-author { flex-direction: column; } }
.evo-mini-grid--posts { grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr)); }
.evo-mini--post .evo-mini-img { width: 160px; height: 100px; }
@media (max-width: 600px) { .evo-mini--post { flex-direction: column; align-items: flex-start; } .evo-mini--post .evo-mini-img { width: 100%; height: auto; aspect-ratio: 16 / 10; } }

.evo-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evo-archive-title { margin-bottom: .5rem; }
.evo-archive-desc { margin-bottom: 2rem; }

/* ==========================================================================
   v0.4.7 — Movimiento: portada viva, entradas al hacer scroll, tarjetas y
   botones que reaccionan. Nada se mueve con «reducir movimiento».
   ========================================================================== */
:root { --evo-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }

@media (prefers-reduced-motion: no-preference) {
	/* Entradas al hacer scroll (solo si el JS ha cargado: sin JS se ve todo). */
	.evo-motion .evo-rv {
		opacity: 0;
		transform: translateY(26px);
		transition: opacity 0.7s var(--evo-ease), transform 0.7s var(--evo-ease);
		transition-delay: var(--evo-d, 0s);
	}
	.evo-motion .evo-rv.is-in { opacity: 1; transform: none; }

	/* Portada viva: luces que se mueven despacio y el collage flotando. */
	.evo-hero { position: relative; isolation: isolate; }
	.evo-hero::before {
		content: "";
		position: absolute;
		inset: -12% 0;
		z-index: -1;
		pointer-events: none;
		background:
			radial-gradient(38% 48% at 22% 35%, color-mix(in srgb, var(--evo-accent) 24%, transparent), transparent 70%),
			radial-gradient(34% 44% at 78% 68%, color-mix(in srgb, var(--evo-accent-2) 22%, transparent), transparent 70%);
		background-repeat: no-repeat;
		animation: evo-glow 16s ease-in-out infinite alternate;
	}
	@keyframes evo-glow {
		0%   { background-position: 0 0, 0 0; opacity: 0.75; }
		50%  { opacity: 1; }
		100% { background-position: 70px -40px, -80px 30px; opacity: 0.85; }
	}
	.evo-hero-shot img { animation: evo-float 7s ease-in-out infinite; will-change: transform; }
	@keyframes evo-float {
		0%, 100% { transform: translateY(0) rotate(0deg); }
		50%      { transform: translateY(-12px) rotate(-0.6deg); }
	}

	/* Pulso suave en el botón principal de la portada. */
	.evo-hero .wp-block-button:first-child .wp-block-button__link { animation: evo-pulse 2.8s ease-out infinite; }
	@keyframes evo-pulse {
		0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--evo-accent) 55%, transparent); }
		70%  { box-shadow: 0 0 0 14px color-mix(in srgb, var(--evo-accent) 0%, transparent); }
		100% { box-shadow: 0 0 0 0 transparent; }
	}

	/* Botones con halo. */
	.wp-block-button__link { transition: transform 0.2s var(--evo-ease), box-shadow 0.25s ease, background-color 0.2s ease, color 0.2s ease; }
	.wp-block-button__link:hover, .wp-block-button__link:focus-visible {
		transform: translateY(-2px);
		animation: none;
		box-shadow: 0 0 0 5px color-mix(in srgb, var(--evo-accent) 28%, transparent), 0 12px 26px -10px color-mix(in srgb, var(--evo-accent) 70%, transparent);
	}

	/* Tarjetas que reaccionan al ratón (solo con ratón). */
	@media (hover: hover) {
		.evo-card, .evo-mini, .evo-featured { transition: border-color 0.2s ease, transform 0.35s var(--evo-ease), box-shadow 0.35s var(--evo-ease); }
		.evo-card:hover, .evo-mini:hover {
			transform: translateY(-6px) rotate(-0.4deg);
			box-shadow: 0 20px 40px -20px color-mix(in srgb, var(--evo-accent) 60%, transparent);
		}
		.evo-app-card:hover .evo-app-icon { animation: evo-hop 0.6s var(--evo-ease); }
		@keyframes evo-hop {
			0%, 100% { transform: none; }
			40%      { transform: translateY(-8px) rotate(-7deg); }
			70%      { transform: translateY(1px) rotate(2deg); }
		}
		.evo-shot img { transition: transform 0.4s var(--evo-ease), box-shadow 0.4s var(--evo-ease); }
		.evo-landing .evo-shot:hover img, .evo-page .evo-shot:hover img {
			transform: translateY(-8px) scale(1.02);
			box-shadow: 0 24px 40px -22px rgba(0, 0, 0, 0.6);
		}
		.evo-hero .evo-shot:hover img { transform: none; box-shadow: none; }
	}
}

.evo-mini-ico { flex: none; aspect-ratio: 1; object-fit: cover; }
