/* Base visual compartida por todo el sitio Eledeve. */
:root {
	--color-blue: #1e5bff;
	--color-blue-hover: #1749cf;
	--color-accent: #ff2e9a;
	--color-ink: #11223f;
	--color-muted: #5a678a;
	--color-paper: #f4f7fb;
	--color-panel: #ffffff;
	--color-panel-alt: #eef2fa;
	--color-line: #dbe3f0;
	--color-navy: #0a1228;
	--color-success: #148055;
	--shadow: 0 8px 26px rgba(17, 34, 63, 0.08);
	--shadow-raised: 0 22px 60px rgba(17, 34, 63, 0.16);
	--radius-sm: 10px;
	--radius-md: 18px;
	--radius-lg: 28px;
	--content-width: 1200px;
	--font-body: "Barlow", Arial, sans-serif;
	--font-display: "Barlow Condensed", "Barlow", Arial, sans-serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--color-blue: #4d85ff;
	--color-blue-hover: #78a4ff;
	--color-accent: #ff49ac;
	--color-ink: #eaf0fb;
	--color-muted: #a5b1cf;
	--color-paper: #0a1228;
	--color-panel: #111d38;
	--color-panel-alt: #0e1830;
	--color-line: #283a64;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
	--shadow-raised: 0 26px 70px rgba(0, 0, 0, 0.52);
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

.eledeve-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: 26px;
	height: 26px;
	border: 2px solid var(--color-accent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-blue) 22%, transparent);
	opacity: 0;
	pointer-events: none;
	transition: opacity 160ms ease, width 120ms ease-out, height 120ms ease-out, background 120ms ease, border-color 120ms ease, transform 90ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.eledeve-cursor.is-visible {
	opacity: 0.85;
}

.eledeve-cursor.is-hovering {
	width: 40px;
	height: 40px;
	background: color-mix(in srgb, var(--color-accent) 22%, transparent);
	border-color: var(--color-blue);
}

@media (prefers-reduced-motion: reduce) {
	.eledeve-cursor {
		transition: opacity 160ms ease;
	}
}

body {
	margin: 0;
	background: var(--color-paper);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.menu-is-open,
body.search-is-open {
	overflow: hidden;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
[type="button"],
[type="submit"] {
	cursor: pointer;
}

a {
	color: var(--color-blue);
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--color-blue-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	color: var(--color-ink);
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.25rem, 7vw, 4.4rem);
}

h2 {
	font-size: clamp(1.75rem, 4vw, 2.7rem);
}

h3 {
	font-size: clamp(1.35rem, 3vw, 1.85rem);
}

p {
	margin: 0 0 1.2em;
}

hr {
	border: 0;
	border-top: 1px solid var(--color-line);
}

::selection {
	background: var(--color-accent);
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 14px;
	margin: 0;
	background: var(--color-panel);
	color: var(--color-ink);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-container {
	width: min(var(--content-width), calc(100% - 48px));
	margin-inline: auto;
}

.site-main {
	flex: 1;
}

.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.72rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--color-blue);
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: transform 160ms ease, filter 160ms ease, background-color 160ms ease;
}

.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.button--light {
	background: #fff;
	color: #0a1228;
}

.button--light:hover {
	color: #0a1228;
}

/* Cabecera */
.site-topbar {
	background: var(--color-navy);
	color: #cdd6e2;
	font-size: 0.78rem;
}

.site-topbar__inner,
.site-topbar__actions,
.social-links,
.site-header__main,
.site-header__tools {
	display: flex;
	align-items: center;
}

.site-topbar__inner {
	min-height: 38px;
	justify-content: space-between;
	gap: 1rem;
}

.site-topbar p {
	margin: 0;
}

.site-topbar__actions {
	gap: 0.9rem;
}

.site-topbar a {
	color: #cdd6e2;
	text-decoration: none;
}

.site-topbar a:hover {
	color: #fff;
}

.site-topbar__contact {
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	padding-left: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	/* Fondo opaco en vez de backdrop-filter: con el logo animado
	   adentro, el desenfoque se recalculaba en cada cuadro (medido a
	   1920x1080: 23 fps con blur, 60 fps sin él; 25 de septiembre de 2026). */
	background: var(--color-paper);
	border-bottom: 1px solid var(--color-line);
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__main {
	min-height: 76px;
	display: grid;
	grid-template-columns: 1fr minmax(280px, 560px) 1fr;
	gap: 1.25rem;
}

.site-header__brand {
	justify-self: start;
}

.site-brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--color-ink);
	text-decoration: none;
}

.site-brand {
	align-items: flex-end;
}

.custom-logo {
	width: auto;
	max-width: 190px;
	max-height: 52px;
}

.site-brand__signal {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 28px;
}

.site-brand__signal span {
	display: block;
	width: 4px;
	height: 40%;
	border-radius: 3px;
	background: var(--color-blue);
	transform-origin: bottom;
	animation: eledeve-equalizer 1.6s ease-in-out infinite;
}

.site-brand__signal span:nth-child(2) {
	height: 80%;
	background: var(--color-accent);
	animation-delay: 0.2s;
}

.site-brand__signal span:nth-child(3) {
	height: 55%;
	animation-delay: 0.4s;
}

.site-brand__signal span:nth-child(4) {
	height: 100%;
	background: var(--color-accent);
	animation-delay: 0.6s;
}

.site-brand__signal span:nth-child(5) {
	height: 65%;
	animation-delay: 0.8s;
}

.site-brand__wordmark {
	font-family: var(--font-display);
	font-size: 1.62rem;
	font-weight: 800;
	letter-spacing: 0.5px;
	line-height: 1;
	text-transform: uppercase;
}

.site-brand__wordmark strong {
	color: var(--color-accent);
}

@keyframes eledeve-equalizer {
	0%,
	100% { transform: scaleY(1); }
	50% { transform: scaleY(0.48); }
}

.header-search {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.62rem 1rem;
	background: var(--color-panel-alt);
	color: var(--color-muted);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	text-align: left;
}

.header-search:hover,
.header-search:focus-within {
	border-color: var(--color-blue);
}

.icon-button.header-search-mobile,
.site-nav__mobile-actions,
.site-nav__mobile-extra {
	display: none;
}

.header-search__placeholder {
	flex: 1;
}

.header-search__field {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: 0;
	color: var(--color-ink);
	font-family: inherit;
	font-size: 0.92rem;
}

.header-search__field:focus {
	outline: none;
}

.header-search__field::placeholder {
	color: var(--color-muted);
}

.header-search kbd {
	padding: 0.12rem 0.42rem;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	font-size: 0.67rem;
}

.header-search__icon {
	position: relative;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	border: 2px solid currentColor;
	border-radius: 50%;
}

.header-search__icon::after {
	position: absolute;
	right: -5px;
	bottom: -3px;
	width: 7px;
	height: 2px;
	background: currentColor;
	content: "";
	transform: rotate(45deg);
}

.site-header__tools {
	justify-self: end;
	justify-content: flex-end;
	gap: 0.75rem;
}

.account-link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	color: var(--color-ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.account-link__icon {
	position: relative;
	width: 20px;
	height: 20px;
	border: 1.7px solid currentColor;
	border-radius: 50%;
}

.account-link__icon::before {
	position: absolute;
	top: 3px;
	left: 6px;
	width: 5px;
	height: 5px;
	border: 1.4px solid currentColor;
	border-radius: 50%;
	content: "";
}

.account-link__icon::after {
	position: absolute;
	left: 4px;
	bottom: 3px;
	width: 9px;
	height: 5px;
	border: 1.4px solid currentColor;
	border-bottom: 0;
	border-radius: 7px 7px 0 0;
	content: "";
}

.icon-button {
	display: inline-grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--color-line);
	border-radius: 50%;
	background: var(--color-panel);
	color: var(--color-ink);
}

.icon-button:hover {
	border-color: var(--color-blue);
}

.theme-switch {
	position: relative;
	display: inline-grid;
	width: 64px;
	height: 34px;
	padding: 3px;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	flex: 0 0 64px;
	border: 1px solid var(--color-line);
	border-radius: 999px;
	background: linear-gradient(90deg, #fff2c7 0%, #e9efff 100%);
	box-shadow: inset 0 1px 3px rgba(17, 34, 63, 0.08);
	color: var(--color-muted);
	cursor: pointer;
	isolation: isolate;
	transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.theme-switch:hover {
	border-color: var(--color-blue);
	box-shadow: 0 0 0 3px rgba(30, 91, 255, 0.1), inset 0 1px 3px rgba(17, 34, 63, 0.08);
}

.theme-switch:focus-visible {
	outline: 3px solid var(--color-blue);
	outline-offset: 3px;
}

.theme-switch__thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	z-index: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 3px 10px rgba(17, 34, 63, 0.22);
	transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), background 180ms ease;
}

.theme-switch__icon {
	position: relative;
	z-index: 1;
	display: grid;
	width: 26px;
	height: 26px;
	place-items: center;
	transition: color 180ms ease, opacity 180ms ease;
}

.theme-switch__icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.theme-switch__icon--sun {
	color: #a65a00;
}

.theme-switch__icon--moon {
	color: #6c7897;
	opacity: 0.72;
}

:root[data-theme="dark"] .theme-switch {
	background: linear-gradient(90deg, #27375d 0%, #111b34 100%);
	box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .theme-switch__thumb {
	background: #20345e;
	transform: translateX(30px);
}

:root[data-theme="dark"] .theme-switch__icon--sun {
	color: #a5b1cf;
	opacity: 0.68;
}

:root[data-theme="dark"] .theme-switch__icon--moon {
	color: #ffffff;
	opacity: 1;
}

.menu-toggle {
	display: none;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
	transition: transform 160ms ease;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before {
	position: absolute;
	top: -6px;
}

.menu-toggle__bars::after {
	position: absolute;
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
	transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after {
	transform: translateY(-6px) rotate(-45deg);
}

.site-nav-wrap {
	border-top: 1px solid var(--color-line);
}

.site-nav__list,
.site-nav__list ul,
.footer-nav__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-nav__list {
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.site-nav__list > li {
	position: relative;
}

.site-nav__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.46rem 0.95rem;
	border-radius: 999px;
	color: var(--color-ink);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__list > li > a::before {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--color-blue);
	content: "";
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.site-nav__list a:hover::before,
.site-nav__list a:focus-visible::before {
	transform: scale(1.18);
	box-shadow: 0 0 2px 1px var(--color-blue), 0 0 7px 3px color-mix(in srgb, var(--color-blue) 40%, transparent);
}

.site-nav__list > li:nth-child(even) > a::before,
.site-nav__list .menu-item--academy > a::before,
.site-nav__list .menu-item--consultorias > a::before {
	background: var(--color-accent);
}

.site-nav__list > li:nth-child(even) > a:hover::before,
.site-nav__list .menu-item--academy > a:hover::before,
.site-nav__list .menu-item--consultorias > a:hover::before,
.site-nav__list > li:nth-child(even) > a:focus-visible::before,
.site-nav__list .menu-item--academy > a:focus-visible::before,
.site-nav__list .menu-item--consultorias > a:focus-visible::before {
	box-shadow: 0 0 2px 1px var(--color-accent), 0 0 7px 3px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a {
	background: var(--color-panel-alt);
	color: var(--color-blue);
}

.site-nav__list ul {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	padding: 0.5rem;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 140ms ease, transform 140ms ease;
}

.site-nav__list li:hover > ul,
.site-nav__list li:focus-within > ul {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

/* Buscador nativo */
.search-dialog {
	width: min(680px, calc(100% - 32px));
	max-width: none;
	padding: 0;
	background: transparent;
	color: var(--color-ink);
	border: 0;
	overflow: visible;
}

.search-dialog::backdrop {
	background: rgba(10, 18, 40, 0.68);
	backdrop-filter: blur(5px);
}

.search-dialog__panel {
	padding: 1.4rem;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-raised);
}

.search-dialog__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.search-dialog__heading h2 {
	margin: 0;
	font-size: 1.5rem;
}

.search-dialog__close {
	font-size: 1.45rem;
}

.search-dialog__form label {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--color-muted);
	font-size: 0.82rem;
	font-weight: 600;
}

.search-dialog__field {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.55rem 0.65rem 0.55rem 1rem;
	background: var(--color-panel-alt);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	color: var(--color-muted);
}

.search-dialog__field:focus-within {
	border-color: var(--color-blue);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-blue) 22%, transparent);
}

.search-dialog__field input {
	min-width: 0;
	flex: 1;
	background: transparent;
	color: var(--color-ink);
	border: 0;
	outline: 0;
}

/* Contenido genérico */
.content-shell,
.listing-shell {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.content-shell {
	max-width: 860px;
}

.entry__header,
.listing-header {
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.entry__featured-image {
	margin-bottom: 2rem;
}

.entry__featured-image img {
	width: 100%;
	border-radius: var(--radius-md);
}

.entry__content {
	font-size: 1.06rem;
}

.entry__content > * {
	max-width: 760px;
	margin-inline: auto;
}

.entry__content > .alignwide {
	max-width: 1100px;
}

.entry__content > .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry__content blockquote {
	padding: 0.6rem 0 0.6rem 1.4rem;
	border-left: 4px solid var(--color-accent);
	color: var(--color-muted);
	font-size: 1.15rem;
}

.entry__content code {
	padding: 0.12em 0.35em;
	background: var(--color-panel-alt);
	border-radius: 5px;
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
}

.entry__content th,
.entry__content td {
	padding: 0.75rem;
	border: 1px solid var(--color-line);
	text-align: left;
}

.listing-header {
	max-width: 760px;
}

.listing-header__description,
.eyebrow,
.post-card__meta,
.search-result__type {
	color: var(--color-muted);
}

.eyebrow,
.post-card__meta,
.search-result__type {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}

.post-card {
	overflow: hidden;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow);
}

.post-card__media,
.post-card__media img,
.post-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.post-card__media img {
	object-fit: cover;
	transition: transform 300ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.025);
}

.post-card__placeholder {
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-blue) 74%, #fff), color-mix(in srgb, var(--color-accent) 78%, #fff));
}

.post-card__body {
	padding: 1.3rem;
}

.post-card__meta {
	margin-bottom: 0.5rem;
}

.post-card h2,
.search-result h2 {
	font-size: 1.45rem;
}

.post-card h2 a,
.search-result h2 a {
	color: var(--color-ink);
	text-decoration: none;
}

.post-card h2 a:hover,
.search-result h2 a:hover {
	color: var(--color-blue);
}

.post-card__excerpt,
.search-result > div {
	color: var(--color-muted);
}

.post-card__excerpt p,
.search-result > div p {
	margin-bottom: 0;
}

.search-results-list {
	display: grid;
	gap: 1rem;
}

.search-result {
	padding: 1.5rem;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
}

.search-result__type {
	margin-bottom: 0.35rem;
}

.empty-state {
	padding: clamp(2rem, 7vw, 5rem);
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	text-align: center;
}

.navigation.pagination {
	margin-top: 2.5rem;
}

.nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-grid;
	min-width: 40px;
	height: 40px;
	padding-inline: 0.65rem;
	place-items: center;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--color-blue);
	color: #fff;
	border-color: var(--color-blue);
}

/* Pie */
.site-footer {
	padding-top: clamp(3rem, 7vw, 4rem);
	background: var(--color-navy);
	color: #c6d0dd;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 0.65fr 0.85fr 0.85fr;
	gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 783px) {
	.site-footer__grid:not(:has(> :nth-child(4))) {
		grid-template-columns: 1.2fr 0.65fr 0.85fr;
	}
}

.site-footer__cert > p {
	max-width: 260px;
	margin-top: 1rem;
	color: #9aa7b6;
}

.site-footer__cert-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1rem;
	padding: 0.6rem 1.15rem;
	border: 1px solid rgba(255, 255, 255, 0.32);
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.site-footer__cert-link:hover,
.site-footer__cert-link:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.site-footer__cert-icon {
	width: 18px;
	height: 18px;
	flex: none;
	color: var(--color-accent);
}

.site-footer .site-brand {
	color: #fff;
}

.site-footer__about > p,
.site-footer__contact > p {
	max-width: 360px;
	margin-top: 1rem;
	color: #9aa7b6;
}

.site-footer__about > .site-footer__tagline {
	margin-top: 1.1rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.site-footer__about > .site-footer__tagline + p {
	margin-top: 0.6rem;
}

.site-footer__contact > .site-footer__mail {
	margin-top: 0.9rem;
	font-size: 0.9rem;
}

.site-footer__mail a {
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__mail a:hover,
.site-footer__mail a:focus-visible {
	border-bottom-color: #fff;
}

.site-footer h2 {
	margin-bottom: 1rem;
	color: #fff;
	font-size: 0.9rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eledeve-social-icon {
	width: 16px;
	height: 16px;
}

.social-links {
	gap: 0.5rem;
}

.social-links a {
	display: inline-grid;
	width: 36px;
	height: 36px;
	place-items: center;
	background: rgba(255, 255, 255, 0.09);
	border-radius: 10px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
}

.social-links a:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.social-links--compact {
	gap: 0.25rem;
}

.social-links--compact a {
	width: 26px;
	height: 26px;
	background: transparent;
}

.footer-nav__list a {
	display: inline-block;
	padding: 0.28rem 0;
	color: #c6d0dd;
	font-size: 0.9rem;
	text-decoration: none;
}

.footer-nav__list a:hover {
	color: #fff;
}

/* Botón de arrepentimiento: visible y fácil de encontrar (Res. SCI 424/2020). */
.footer-nav__list a.site-footer__withdrawal {
	margin: 0.15rem 0;
	padding: 0.35rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	color: #fff;
	font-weight: 600;
}

.footer-nav__list a.site-footer__withdrawal:hover,
.footer-nav__list a.site-footer__withdrawal:focus-visible {
	background: rgba(255, 255, 255, 0.12);
}

.site-footer__seller {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	color: #9aa7b6;
	font-size: 0.82rem;
}

.site-footer__seller p {
	margin: 0;
}

.site-footer__datafiscal {
	flex: none;
	color: #c6d0dd;
}

.site-footer__datafiscal img {
	display: block;
	width: 56px;
	height: auto;
	border-radius: 4px;
	background: #fff;
}

/* "Configurar cookies": botón con aspecto de link del pie. */
.site-footer__link-button {
	padding: 0.28rem 0;
	background: none;
	border: 0;
	color: #c6d0dd;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
}

.site-footer__link-button:hover,
.site-footer__link-button:focus-visible {
	color: #fff;
}

/* Aviso de cookies (inc/legal.php). Abajo a la izquierda para no tapar WhatsApp. */
.eledeve-cookies {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 70;
	box-sizing: border-box;
	width: min(440px, calc(100vw - 48px));
	padding: 18px 20px;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow), 0 18px 40px rgba(17, 34, 63, 0.16);
	color: var(--color-ink);
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 200ms ease, transform 200ms ease;
}

.eledeve-cookies.is-visible {
	opacity: 1;
	transform: none;
}

.eledeve-cookies[hidden] {
	display: none;
}

.eledeve-cookies p {
	margin: 0 0 14px;
	color: var(--color-muted);
	font-size: 0.86rem;
	line-height: 1.5;
}

.eledeve-cookies a {
	color: var(--color-blue);
	font-weight: 600;
}

.eledeve-cookies__actions {
	display: flex;
	gap: 10px;
}

.eledeve-cookies__button {
	flex: 1;
	min-height: 42px;
	padding: 0 16px;
	background: var(--color-panel-alt);
	border: 1px solid var(--color-line);
	border-radius: 999px;
	color: var(--color-ink);
	font: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
}

.eledeve-cookies__button--primary {
	background: var(--color-blue);
	border-color: var(--color-blue);
	color: #fff;
}

.eledeve-cookies__button:hover,
.eledeve-cookies__button:focus-visible {
	border-color: var(--color-blue);
}

.eledeve-cookies__button--primary:hover,
.eledeve-cookies__button--primary:focus-visible {
	background: var(--color-blue-hover);
}

@media (max-width: 600px) {
	.eledeve-cookies {
		left: 12px;
		bottom: 12px;
		width: calc(100vw - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eledeve-cookies {
		transition: none;
	}
}

.site-footer__bottom {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.5rem;
	padding-block: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #8593a4;
	font-size: 0.78rem;
}

.site-footer__bottom p {
	margin: 0;
}

/* Integración visual opcional con WooCommerce. */
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count {
	color: var(--color-muted);
}

.woocommerce ul.products li.product,
.woocommerce div.product {
	color: var(--color-ink);
}

.woocommerce ul.products li.product a img {
	border-radius: var(--radius-md);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	background: var(--color-panel);
	color: var(--color-ink);
	border-radius: var(--radius-sm);
	border-color: var(--color-blue);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce select {
	padding: 0.75rem;
	background: var(--color-panel);
	color: var(--color-ink);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
}

@media (max-width: 1000px) {
	.site-header__main {
		grid-template-columns: auto 1fr auto;
	}

	.header-search {
		max-width: 480px;
	}

	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}

	.site-container {
		width: min(var(--content-width), calc(100% - 32px));
	}

	.site-topbar__inner {
		justify-content: flex-end;
	}

	.site-topbar__inner > p,
	.social-links--compact {
		display: none;
	}

	.site-header__main {
		min-height: 66px;
		grid-template-columns: 1fr auto;
	}

	.header-search {
		display: none;
	}

	.icon-button.header-search-mobile {
		display: inline-grid;
	}

	.icon-button {
		width: 44px;
		height: 44px;
	}

	.account-link span:last-child {
		display: none;
	}

	.account-link {
		width: 44px;
		height: 44px;
		justify-content: center;
	}

	.menu-toggle {
		display: inline-grid;
	}

	.site-nav-wrap {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		height: calc(100vh - 104px);
		overflow-y: auto;
		background: var(--color-paper);
		box-shadow: var(--shadow);
	}

	.site-nav-wrap.is-open {
		display: block;
	}

	.site-nav__list {
		min-height: 0;
		padding-block: 0.75rem;
		align-items: stretch;
		flex-direction: column;
	}

	.site-nav__list a {
		width: 100%;
		padding: 0.75rem 0.9rem;
	}

	.site-nav__list ul {
		position: static;
		display: block;
		padding: 0 0 0 1rem;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		transform: none;
	}

	/* Accesos extra del menú del celular: quiz y contacto. */
	.site-nav__mobile-extra {
		display: block;
		margin: 0 auto;
		padding: 0.4rem 0 0.9rem;
		border-top: 1px solid var(--color-line);
		list-style: none;
	}

	.site-nav__mobile-extra a {
		display: flex;
		align-items: center;
		min-height: 44px;
		/* Alineado con el texto de las áreas de arriba (que llevan un punto de color). */
		padding: 0 0.9rem 0 1.85rem;
		color: var(--color-muted);
		font-weight: 600;
		text-decoration: none;
	}

	/* Áreas táctiles de al menos 44 px (auditoría de Trello "Mobile 390 px"). */
	.footer-nav__list a,
	.site-footer__link-button,
	.site-topbar__contact {
		display: inline-flex;
		align-items: center;
		gap: 0.35rem;
		min-height: 44px;
	}

	.social-links a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
	}

	/* Links de texto en línea (migas de pan, mail del pie): se agranda el
	   área que se puede tocar sin mover el texto. */
	.site-footer__mail a,
	.eledeve-clp__crumb a,
	.academy-breadcrumb a,
	.contact-breadcrumb a {
		padding-block: 0.8rem;
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__about,
	.site-footer__cert {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.site-brand__wordmark {
		font-size: 1.45rem;
	}

	.site-header__tools {
		gap: 0.5rem;
	}

	.search-dialog__field {
		align-items: stretch;
		border-radius: var(--radius-sm);
		flex-wrap: wrap;
	}

	.search-dialog__field input {
		min-height: 44px;
	}

	.search-dialog__field .button {
		width: 100%;
	}

	.post-grid,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__about {
		grid-column: auto;
	}

	.site-footer__bottom {
		flex-direction: column;
	}
}

@media (max-width: 440px) {
	.site-header__main {
		gap: 0.5rem;
	}

	.account-link {
		display: none;
	}

	.site-nav__mobile-actions {
		display: block;
		padding-top: 0.75rem;
	}

	.site-nav__mobile-actions a {
		display: flex;
		min-height: 44px;
		align-items: center;
		gap: 0.6rem;
		padding: 0.65rem 0.9rem;
		border: 1px solid var(--color-line);
		border-radius: var(--radius-sm);
		background: var(--color-panel);
		color: var(--color-ink);
		font-weight: 600;
		text-decoration: none;
	}

	.theme-switch {
		width: 56px;
		flex-basis: 56px;
	}

	:root[data-theme="dark"] .theme-switch__thumb {
		transform: translateX(22px);
	}
}

@media (max-width: 360px) {
	.site-container {
		width: min(var(--content-width), calc(100% - 24px));
	}

	.site-brand__wordmark {
		font-size: 1.35rem;
	}

	.site-brand__signal {
		height: 24px;
		gap: 2px;
	}

	.site-brand__signal span {
		width: 3px;
	}

	.site-header__tools {
		gap: 0.35rem;
	}

}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Precio con descuento de WooCommerce (precio rebajado): el precio real
   tachado y el de promoción visible, en todas las tarjetas y fichas. */
:is(.tool-single__price, .premium-tools-card__price, .tools-grid__price, .premium-tools-banner__card-body, .eledeve-reg__item-price, .eledeve-clp__btn-price) del {
	margin-right: 0.4em;
	font-size: 0.82em;
	font-weight: 600;
	opacity: 0.6;
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
}

/* En los precios grandes, el precio real tachado va en su renglón, arriba. */
:is(.tool-single__price, .tools-grid__price, .premium-tools-card__price) del {
	display: block;
	margin: 0 0 0.2em;
}

:is(.tool-single__price, .tools-grid__price) del {
	font-size: 0.5em;
}

:is(.tool-single__price, .premium-tools-card__price, .tools-grid__price, .premium-tools-banner__card-body, .eledeve-reg__item-price, .eledeve-clp__btn-price) ins {
	text-decoration: none;
}

.eledeve-tool-price--free {
	color: var(--color-success);
	font-weight: 700;
}

:is(.eledeve-reg__item-price, .eledeve-clp__btn-price) .eledeve-tool-price--free {
	color: inherit;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* Animaciones pausadas fuera de la pantalla (assets/js/site.js). */
.is-offscreen,
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after {
	animation-play-state: paused !important;
}
