/* Portada editorial — ecomNinja */
.en-home {
	--home-ink: #181917;
	--home-muted: #6e6c65;
	--home-cream: #f7f3e8;
	--home-paper: #fffdf7;
	--home-line: rgba(24, 25, 23, 0.14);
	--home-amber: #d8932e;
	background: var(--home-cream);
	color: var(--home-ink);
}

.en-home-shell {
	width: min(100% - 48px, 1480px);
	margin-inline: auto;
}

.en-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: #8a682e;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.en-eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--home-amber);
}

.en-display,
.en-section-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.en-display {
	max-width: 750px;
	font-size: clamp(52px, 6vw, 94px);
}

.en-display em,
.en-section-title em {
	color: var(--home-amber);
	font-weight: 500;
}

.en-lede {
	max-width: 680px;
	margin: 27px 0 0;
	color: var(--home-muted);
	font-size: clamp(16px, 1.45vw, 20px);
	line-height: 1.65;
}

.en-hero {
	padding: clamp(56px, 7vw, 105px) 0 54px;
	border-bottom: 1px solid var(--home-line);
}

.en-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
	align-items: center;
	gap: clamp(48px, 7vw, 110px);
}

.en-search {
	display: flex;
	align-items: center;
	max-width: 690px;
	margin-top: 35px;
	padding: 7px 7px 7px 19px;
	border: 1px solid rgba(24, 25, 23, 0.18);
	border-radius: 999px;
	background: var(--home-paper);
	box-shadow: 0 12px 30px rgba(40, 34, 20, 0.07);
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.en-search:focus-within {
	border-color: rgba(216, 147, 46, 0.75);
	box-shadow: 0 14px 35px rgba(104, 75, 29, 0.11), 0 0 0 3px rgba(216, 147, 46, 0.1);
}

.en-search svg {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	color: rgba(24, 25, 23, 0.48);
}

.en-search input {
	min-width: 0;
	flex: 1;
	padding: 11px 13px;
	border: 0;
	background: transparent;
	color: var(--home-ink);
	font-size: 14px;
	outline: none;
}

.en-search input::placeholder {
	color: rgba(24, 25, 23, 0.48);
}

.en-search button,
.en-button-dark,
.en-button-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 43px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease;
}

.en-search button,
.en-button-dark {
	background: var(--home-ink);
	color: #fff;
}

.en-search button:hover,
.en-search button:focus-visible,
.en-button-dark:hover,
.en-button-dark:focus-visible {
	background: #343630;
	transform: translateY(-1px);
	outline: none;
}

.en-quick-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 17px;
	color: var(--home-muted);
	font-size: 11px;
}

.en-quick-links span {
	font-weight: 700;
}

.en-quick-links a {
	color: inherit;
	text-underline-offset: 3px;
}

.en-quick-links a:hover,
.en-quick-links a:focus-visible {
	color: var(--home-ink);
}

.en-radar {
	position: relative;
	padding: clamp(27px, 3vw, 42px);
	border-radius: 5px;
	background: #171815;
	color: #fff;
	box-shadow: 26px 26px 0 rgba(216, 147, 46, 0.2);
	overflow: hidden;
}

.en-radar::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--home-amber), rgba(216, 147, 46, 0.15));
}

.en-radar-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.en-radar-label {
	margin: 0 0 7px;
	color: #dea34c;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.en-radar-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(25px, 2.1vw, 34px);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.en-radar-all {
	color: rgba(255, 255, 255, 0.54);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.en-radar-all:hover,
.en-radar-all:focus-visible {
	color: #fff;
	outline: none;
}

.en-radar-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.en-radar-item {
	display: grid;
	grid-template-columns: 28px 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 15px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.en-radar-rank {
	color: rgba(255, 255, 255, 0.32);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-style: italic;
}

.en-tool-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #242520;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	overflow: hidden;
}

.en-tool-logo img {
	width: 74%;
	height: 74%;
	filter: grayscale(1) brightness(0) invert(1);
	object-fit: contain;
}

.en-radar-name {
	display: block;
	margin-bottom: 4px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.en-radar-name:hover,
.en-radar-name:focus-visible {
	color: #f2bd6d;
	outline: none;
}

.en-radar-category {
	color: rgba(255, 255, 255, 0.4);
	font-size: 10px;
}

.en-radar-arrow {
	color: #dca24d;
	font-size: 17px;
}

.en-stats {
	border-bottom: 1px solid var(--home-line);
}

.en-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.en-stat {
	padding: 30px clamp(16px, 3vw, 42px);
	border-left: 1px solid var(--home-line);
}

.en-stat:first-child {
	border-left: 0;
}

.en-stat-number {
	display: block;
	margin-bottom: 3px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(30px, 3vw, 46px);
	font-style: italic;
	letter-spacing: -0.04em;
}

.en-stat-label {
	color: var(--home-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.en-goals,
.en-tools,
.en-categories,
.en-stores {
	padding: clamp(70px, 8vw, 118px) 0;
}

.en-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 38px;
}

.en-section-title {
	max-width: 800px;
	font-size: clamp(42px, 5vw, 72px);
}

.en-section-intro {
	max-width: 430px;
	margin: 0 0 4px;
	color: var(--home-muted);
	font-size: 14px;
	line-height: 1.65;
}

.en-goal-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.en-goal-card {
	position: relative;
	display: flex;
	min-height: 345px;
	flex-direction: column;
	padding: clamp(28px, 3vw, 43px);
	border: 1px solid var(--home-line);
	border-radius: 4px;
	background: var(--home-paper);
	color: var(--home-ink);
	text-decoration: none;
	overflow: hidden;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.en-goal-card:nth-child(1) {
	background: #171815;
	color: #fff;
}

.en-goal-card:nth-child(2) {
	background: #df9d3c;
}

.en-goal-card:hover,
.en-goal-card:focus-visible {
	transform: translateY(-5px);
	box-shadow: 0 22px 45px rgba(43, 36, 22, 0.11);
	outline: none;
}

.en-goal-index {
	margin-bottom: auto;
	color: currentColor;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
	opacity: 0.5;
}

.en-goal-card h3 {
	max-width: 320px;
	margin: 0 0 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(29px, 2.7vw, 42px);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.en-goal-card p {
	max-width: 360px;
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	opacity: 0.68;
}

.en-goal-arrow {
	position: absolute;
	top: 30px;
	right: 30px;
	font-size: 22px;
	transition: transform 180ms ease;
}

.en-goal-card:hover .en-goal-arrow {
	transform: translate(3px, -3px);
}

.en-tools {
	border-top: 1px solid var(--home-line);
	background: #eeeadf;
}

.en-tools-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.en-tool-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 17px;
	padding: 23px;
	border: 1px solid rgba(24, 25, 23, 0.12);
	border-radius: 4px;
	background: var(--home-paper);
	color: var(--home-ink);
	text-decoration: none;
	transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.en-tool-card:hover,
.en-tool-card:focus-visible {
	transform: translateY(-3px);
	border-color: rgba(216, 147, 46, 0.55);
	box-shadow: 0 16px 35px rgba(43, 36, 22, 0.08);
	outline: none;
}

.en-tool-card .en-tool-logo {
	width: 64px;
	height: 64px;
	border: 1px solid rgba(24, 25, 23, 0.09);
}

.en-tool-card-category {
	display: block;
	margin-bottom: 5px;
	color: #936b2e;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.en-tool-card h3 {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 750;
}

.en-tool-card p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--home-muted);
	font-size: 11px;
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.en-tool-card-arrow {
	color: var(--home-amber);
	font-size: 18px;
}

.en-inline-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--home-ink);
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.en-inline-link:hover,
.en-inline-link:focus-visible {
	color: #97691f;
	outline: none;
}

.en-category-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--home-line);
	list-style: none;
}

.en-category-link {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 18px 8px;
	border-bottom: 1px solid var(--home-line);
	color: var(--home-ink);
	text-decoration: none;
	transition: padding 160ms ease, background-color 160ms ease;
}

.en-category-link:hover,
.en-category-link:focus-visible {
	padding-right: 16px;
	padding-left: 16px;
	background: rgba(255, 255, 255, 0.4);
	outline: none;
}

.en-category-count {
	color: #8d6a31;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
}

.en-category-name {
	font-size: clamp(17px, 1.6vw, 23px);
	font-weight: 600;
}

.en-category-action {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-style: italic;
}

.en-stores {
	background: #171815;
	color: #fff;
}

.en-stores .en-eyebrow {
	color: #dba24f;
}

.en-stores .en-section-intro {
	color: rgba(255, 255, 255, 0.52);
}

.en-stores .en-inline-link {
	color: #f0b35b;
}

.en-stores-more {
	margin: 32px 0 0;
}

.en-store-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.en-store-card {
	display: flex;
	min-height: 285px;
	flex-direction: column;
	padding: 25px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.045);
	color: #fff;
	text-decoration: none;
	transition: transform 170ms ease, background-color 170ms ease;
}

.en-store-card:hover,
.en-store-card:focus-visible {
	transform: translateY(-4px);
	background: rgba(255, 255, 255, 0.075);
	outline: none;
}

.en-store-category {
	margin-bottom: auto;
	color: #dca34e;
	font-size: 9px;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.en-store-card h3 {
	margin: 45px 0 9px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 26px;
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.03em;
}

.en-store-card p {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.48);
	font-size: 11px;
	line-height: 1.55;
}

.en-store-link {
	font-size: 11px;
	font-weight: 700;
}

.en-owner-cta {
	padding: 52px 0;
	background: var(--home-amber);
}

.en-owner-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.en-owner-copy {
	max-width: 750px;
}

.en-owner-copy span {
	display: block;
	margin-bottom: 9px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.en-owner-copy h2 {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(31px, 4vw, 55px);
	font-style: italic;
	font-weight: 500;
	letter-spacing: -0.035em;
	line-height: 1.05;
}

.en-button-light {
	flex: 0 0 auto;
	background: var(--home-paper);
	color: var(--home-ink);
}

.en-button-light:hover,
.en-button-light:focus-visible {
	background: #fff;
	transform: translateY(-1px);
	outline: none;
}

@media (max-width: 1100px) {
	.en-hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
		gap: 45px;
	}

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

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

@media (max-width: 820px) {
	.en-home-shell {
		width: min(100% - 36px, 1480px);
	}

	.en-hero-grid {
		grid-template-columns: 1fr;
	}

	.en-radar {
		box-shadow: 14px 14px 0 rgba(216, 147, 46, 0.2);
	}

	.en-section-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.en-goal-grid {
		grid-template-columns: 1fr;
	}

	.en-goal-card {
		min-height: 275px;
	}

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

	.en-stat:nth-child(3) {
		border-left: 0;
		border-top: 1px solid var(--home-line);
	}

	.en-stat:nth-child(4) {
		border-top: 1px solid var(--home-line);
	}

	.en-owner-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 620px) {
	.en-hero {
		padding-top: 48px;
	}

	.en-display {
		font-size: clamp(47px, 14vw, 67px);
	}

	.en-search {
		align-items: stretch;
		padding-left: 14px;
	}

	.en-search button {
		width: 43px;
		padding: 0;
		font-size: 0;
	}

	.en-search button::after {
		content: "→";
		font-size: 16px;
	}

	.en-radar-item {
		grid-template-columns: 22px 42px minmax(0, 1fr) auto;
		gap: 9px;
	}

	.en-tool-logo {
		width: 42px;
		height: 42px;
	}

	.en-tools-grid,
	.en-store-grid {
		grid-template-columns: 1fr;
	}

	.en-tool-card {
		grid-template-columns: 54px minmax(0, 1fr) auto;
		padding: 18px;
	}

	.en-tool-card .en-tool-logo {
		width: 54px;
		height: 54px;
	}

	.en-category-action {
		font-size: 0;
	}

	.en-category-action::after {
		content: "→";
		font-size: 17px;
	}
}

/* ════════════════════════════════════════════════════
   ANIMACIONES SUTILES — ecomNinja Editorial
════════════════════════════════════════════════════ */

@keyframes ambient-breath {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.en-hero {
	background: linear-gradient(
		115deg,
		var(--home-cream) 0%,
		#f2ebdb 25%,
		var(--home-cream) 50%,
		#efe8d5 75%,
		var(--home-cream) 100%
	);
	background-size: 200% 200%;
	animation: ambient-breath 14s ease-in-out infinite;
	will-change: background-position;
}

@keyframes glow-pulse {
	0%   { opacity: 0.85; }
	50%  { opacity: 1; }
	100% { opacity: 0.85; }
}

.en-radar::after {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--home-amber), transparent);
	animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes float-particle {
	0%, 100% { transform: translateY(0) scale(1); opacity: 0.5; }
	50%      { transform: translateY(-18px) scale(1.15); opacity: 0.9; }
}

.en-hero-particle {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--home-amber);
	opacity: 0.4;
	pointer-events: none;
}

.en-hero-particle:nth-child(1) {
	top: 12%;
	right: 22%;
	animation: float-particle 7s ease-in-out infinite;
	animation-delay: 0s;
}

.en-hero-particle:nth-child(2) {
	top: 32%;
	right: 8%;
	width: 3px;
	height: 3px;
	animation: float-particle 9s ease-in-out infinite;
	animation-delay: 2.3s;
}

.en-hero-particle:nth-child(3) {
	top: 62%;
	right: 16%;
	width: 5px;
	height: 5px;
	animation: float-particle 11s ease-in-out infinite;
	animation-delay: 4.7s;
}

/* Goal cards: hover con elevación */
.en-goal-card {
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.en-goal-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 50px rgba(43, 36, 22, 0.13);
}

.en-goal-arrow {
	transition: transform 280ms ease;
}

.en-goal-card:hover .en-goal-arrow {
	transform: translate(5px, -5px);
}

/* Números de estadísticas: aparecen con fade-up */
@keyframes count-up {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.en-stat-number {
	animation: count-up 500ms ease-out both;
}

.en-stat:nth-child(1) .en-stat-number { animation-delay: 0ms; }
.en-stat:nth-child(2) .en-stat-number { animation-delay: 120ms; }
.en-stat:nth-child(3) .en-stat-number { animation-delay: 240ms; }
.en-stat:nth-child(4) .en-stat-number { animation-delay: 360ms; }

/* Íconos de tool cards: micro-scale en hover */
.en-tool-logo img {
	transition: transform 300ms ease;
}

.en-tool-card:hover .en-tool-logo img {
	transform: scale(1.08);
}

/* Flechas de categorías que se deslizan en hover */
.en-category-link::after {
	content: "→";
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.en-category-link:hover::after {
	opacity: 1;
	transform: translateX(0);
}

/* Respeto por movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	.en-home *,
	.en-home *::before,
	.en-home *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
