/* ==========================================================================
   Eagle Shop · Portada (rediseño 2026) — se carga solo en la página de inicio
   Variables de color/tipografía: css/eagle-rediseno.css
   ========================================================================== */

.ec-home { background: var(--ec-bg); }
.ec-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.ec-eyebrow {
	display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase; color: var(--ec-red);
}
.ec-eyebrow--light, .ec-hero .ec-eyebrow { color: #ff6b81; }

/* --- Botones -------------------------------------------------------------- */
.ec-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 26px; border-radius: var(--ec-radius-sm);
	font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none !important;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.ec-btn:hover { transform: translateY(-1px); }
.ec-btn--primary { background: var(--ec-red); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(228, 0, 43, .6); }
.ec-btn--primary:hover { background: var(--ec-red-dark); }
.ec-btn--light { background: #fff; color: var(--ec-ink) !important; }
.ec-btn--light:hover { background: var(--ec-bg); }
.ec-btn--outline { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff !important; }
.ec-btn--outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.ec-link {
	font-size: 14px; font-weight: 600; color: var(--ec-red) !important; text-decoration: none !important;
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.ec-link::after { content: "→"; transition: transform .2s; }
.ec-link:hover::after { transform: translateX(3px); }

/* --- Portada (hero) ------------------------------------------------------- */
.ec-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: 600px; display: flex; align-items: center;
	background: var(--ec-slate-900); color: #fff;
}
.ec-hero__bg { position: absolute; inset: 0; z-index: -2; }
.ec-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.ec-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(20, 26, 31, .94) 0%, rgba(20, 26, 31, .82) 38%, rgba(20, 26, 31, .25) 70%, rgba(20, 26, 31, .1) 100%),
		linear-gradient(0deg, rgba(20, 26, 31, .55) 0%, transparent 35%);
}
.ec-hero__inner { width: 100%; padding-top: 88px; padding-bottom: 88px; }
.ec-hero__inner > * { max-width: 640px; }
.ec-hero__title {
	margin: 0 0 18px; color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 800;
	line-height: 1.05; letter-spacing: -.02em;
}
.ec-hero__lead { margin: 0 0 30px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.ec-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.ec-search {
	display: flex; gap: 6px; padding: 6px; border-radius: 14px;
	background: #fff; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.ec-search input[type="search"] {
	flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0 16px; border: 0 !important;
	background: transparent !important; box-shadow: none !important; font-size: 15px; color: var(--ec-ink);
}
.ec-search input[type="search"]:focus { outline: none; }
.ec-search button {
	height: 48px; padding: 0 24px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--ec-slate); color: #fff; font-weight: 600; font-size: 15px; transition: background-color .2s;
}
.ec-search button:hover { background: var(--ec-red); }

/* --- Beneficios ------------------------------------------------------------ */
.ec-trust { position: relative; z-index: 2; margin-top: -44px; }
.ec-trust__grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	background: #fff; border-radius: var(--ec-radius); box-shadow: var(--ec-shadow-lg); overflow: hidden;
}
.ec-trust__item {
	display: flex; align-items: center; gap: 14px; padding: 24px 22px;
	color: var(--ec-ink) !important; text-decoration: none !important; transition: background-color .2s;
}
.ec-trust__item + .ec-trust__item { border-left: 1px solid var(--ec-line); }
a.ec-trust__item:hover { background: var(--ec-bg); }
.ec-trust__item svg {
	flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 12px;
	background: var(--ec-red-50); color: var(--ec-red);
}
.ec-trust__item strong { display: block; font-size: 15px; font-weight: 700; }
.ec-trust__item span { display: block; font-size: 13px; color: var(--ec-muted); margin-top: 2px; }

/* --- Secciones --------------------------------------------------------------- */
.ec-section { padding: 80px 0; }
.ec-section--soft { background: #fff; }
.ec-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.ec-section__title {
	margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; color: var(--ec-ink);
}

/* --- Categorías -------------------------------------------------------------- */
.ec-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.ec-cat {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px 20px;
	background: #fff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius);
	text-align: center; text-decoration: none !important; color: var(--ec-ink) !important;
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ec-cat:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow); border-color: transparent; }
.ec-cat__img {
	display: block; width: 100%; aspect-ratio: 1; margin-bottom: 10px; border-radius: 10px;
	overflow: hidden; background: var(--ec-bg);
}
.ec-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ec-cat:hover .ec-cat__img img { transform: scale(1.06); }
.ec-cat__name { font-size: 15px; font-weight: 700; }
.ec-cat__count { font-size: 13px; color: var(--ec-muted); }

/* --- Tarjetas de producto ------------------------------------------------------- */
.ec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ec-card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ec-card:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow); border-color: transparent; }
.ec-card__media { display: block; aspect-ratio: 1; background: var(--ec-bg); overflow: hidden; }
.ec-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ec-card:hover .ec-card__media img { transform: scale(1.05); }
.ec-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.ec-card__cat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ec-muted); margin-bottom: 6px; }
.ec-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.ec-card__title a { color: var(--ec-ink) !important; text-decoration: none !important; }
.ec-card__title a:hover { color: var(--ec-red) !important; }
.ec-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ec-card__price { font-size: 18px; font-weight: 700; color: var(--ec-ink); }
.ec-card__price del { font-size: 14px; font-weight: 400; color: var(--ec-muted); }
.ec-card__price ins { text-decoration: none; color: var(--ec-red); }
.ec-card__consultar { font-size: 14px; font-weight: 600; color: var(--ec-muted); }
/* Selectores reforzados: el tema aplica ".main-container a.button" (fondo blanco, alto 50px) */
.ec-home .ec-card a.ec-card__btn {
	display: inline-flex; align-items: center; justify-content: center; height: 38px; min-height: 0; padding: 0 16px;
	border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; text-transform: none;
	background: var(--ec-red); color: #fff !important; border: 0; text-decoration: none !important; box-shadow: none;
}
.ec-home .ec-card a.ec-card__btn:hover { background: var(--ec-red-dark); border: 0; }
.ec-home .ec-card a.ec-card__btn--ghost { background: var(--ec-bg); color: var(--ec-ink) !important; }
.ec-home .ec-card a.ec-card__btn--ghost:hover { background: var(--ec-slate); color: #fff !important; }
.ec-home .ec-card a.ec-card__btn.loading { opacity: .6; }
.ec-home .ec-card a.ec-card__btn.added::after { content: " ✓"; margin-left: 4px; }
.ec-home .ec-card .added_to_cart { display: none; }

/* --- Banners promocionales ------------------------------------------------------ */
.ec-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ec-promo { display: block; border-radius: var(--ec-radius); overflow: hidden; box-shadow: var(--ec-shadow-sm); }
.ec-promo img { display: block; width: 100%; height: auto; transition: transform .5s; }
.ec-promo:hover img { transform: scale(1.03); }

/* --- Lubricantes ------------------------------------------------------------------ */
.ec-feature {
	padding: 88px 0; color: #fff;
	background:
		radial-gradient(1000px 400px at 0% 0%, rgba(228, 0, 43, .25), transparent 60%),
		linear-gradient(135deg, var(--ec-slate-900), var(--ec-slate));
}
.ec-feature__inner { display: grid; grid-template-columns: 1fr 2.4fr; gap: 48px; align-items: center; }
.ec-feature__title { margin: 0 0 16px; color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ec-feature__text p { color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.65; margin: 0 0 28px; }
.ec-feature__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ec-feature .ec-card { border-color: transparent; }
.ec-feature .ec-card__foot { flex-direction: column; align-items: stretch; gap: 10px; }
.ec-home .ec-feature .ec-card a.ec-card__btn { width: 100%; }

/* --- Blog ------------------------------------------------------------------------- */
.ec-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ec-post { background: #fff; border-radius: var(--ec-radius); overflow: hidden; border: 1px solid var(--ec-line); display: flex; flex-direction: column; }
.ec-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ec-bg); }
.ec-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ec-post:hover .ec-post__media img { transform: scale(1.04); }
.ec-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ec-post__body time { font-size: 13px; color: var(--ec-muted); }
.ec-post__body h3 { margin: 8px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.ec-post__body h3 a { color: var(--ec-ink) !important; text-decoration: none !important; }
.ec-post__body h3 a:hover { color: var(--ec-red) !important; }
.ec-post__body p { color: var(--ec-muted); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.ec-post__body .ec-link { margin-top: auto; }

/* --- Marcas ------------------------------------------------------------------------ */
.ec-brands { padding: 56px 0 72px; background: #fff; border-top: 1px solid var(--ec-line); }
.ec-brands__title {
	margin: 0 0 28px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .12em;
	text-transform: uppercase; color: var(--ec-muted);
}
.ec-brands__row { display: grid; grid-template-columns: repeat(6, 1fr); align-items: center; gap: 24px 40px; }
.ec-brands__logo {
	justify-self: center; width: auto; height: 46px; max-width: 100%; object-fit: contain;
	filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s, transform .25s;
}
.ec-brands__logo--alto { height: 76px; }
.ec-brands__logo:hover { filter: none; opacity: 1; transform: scale(1.04); }

/* --- Responsive ----------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ec-grid { grid-template-columns: repeat(3, 1fr); }
	.ec-feature__inner { grid-template-columns: 1fr; }
	.ec-feature__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
	.ec-brands__row { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
	.ec-trust__grid { grid-template-columns: repeat(2, 1fr); }
	.ec-trust__item:nth-child(3) { border-left: 0; }
	.ec-trust__item:nth-child(n+3) { border-top: 1px solid var(--ec-line); }
	.ec-grid, .ec-feature__grid { grid-template-columns: repeat(2, 1fr); }
	.ec-posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.ec-brands { padding: 44px 0 52px; }
	.ec-brands__logo { height: 34px; }
	.ec-brands__logo--alto { height: 58px; }
	.ec-wrap { padding: 0 16px; }
	.ec-hero { min-height: 0; }
	.ec-hero::before { background: linear-gradient(180deg, rgba(20, 26, 31, .7) 0%, rgba(20, 26, 31, .92) 70%); }
	.ec-hero__inner { padding-top: 56px; padding-bottom: 80px; }
	.ec-hero__lead { font-size: 16px; }
	.ec-search button { padding: 0 16px; }
	.ec-hero__actions .ec-btn { flex: 1; padding: 0 14px; font-size: 14px; white-space: nowrap; }
	.ec-trust { margin-top: -36px; }
	.ec-trust__grid { grid-template-columns: 1fr; }
	.ec-trust__item + .ec-trust__item { border-left: 0; border-top: 1px solid var(--ec-line); }
	.ec-trust__item { padding: 16px 18px; }
	.ec-section { padding: 56px 0; }
	.ec-section__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 22px; }
	.ec-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.ec-grid, .ec-feature__grid { gap: 12px; }
	.ec-card__body { padding: 12px 12px 14px; }
	.ec-card__title { font-size: 14px; }
	.ec-card__price { font-size: 16px; }
	.ec-card__foot { flex-direction: column; align-items: stretch; }
	.ec-home .ec-card a.ec-card__btn { width: 100%; }
	.ec-promos, .ec-posts { grid-template-columns: 1fr; }
	.ec-feature { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
	.ec-home * { transition: none !important; }
}

/* Marcas y representaciones: carrusel continuo de logos (solo CSS; se detiene al pasar el mouse) */
.ec-reps { padding: 64px 0 8px; }
.ec-reps__head { margin-bottom: 26px; text-align: center; }
.ec-reps__head .ec-eyebrow { margin-bottom: 8px; }
.ec-reps__title { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.01em; color: var(--ec-ink); }
.ec-reps__viewport {
	position: relative; overflow: hidden; padding: 6px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ec-reps__track { display: flex; width: max-content; animation: ec-reps 70s linear infinite; }
.ec-reps__viewport:hover .ec-reps__track, .ec-reps__viewport:focus-within .ec-reps__track { animation-play-state: paused; }
.ec-reps__list { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0 8px 0 8px; list-style: none; }
.ec-reps__item { display: flex; align-items: center; justify-content: center; flex: none; width: 196px; height: 96px; margin: 0; padding: 16px 22px; list-style: none; background: #fff; border: 1px solid var(--ec-line); border-radius: var(--ec-radius); }
.ec-reps__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes ec-reps { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 767px) {
	.ec-reps { padding-top: 44px; }
	.ec-reps__item { width: 150px; height: 76px; padding: 12px 16px; }
	.ec-reps__list { gap: 10px; }
	.ec-reps__track { animation-duration: 55s; }
}
/* Quien prefiere menos movimiento: sin animación, se desliza con el dedo o la rueda */
@media (prefers-reduced-motion: reduce) {
	.ec-reps__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.ec-reps__track { animation: none; }
	.ec-reps__list[aria-hidden="true"] { display: none; }
}
/* Con JS el carrusel lo mueve el script de front-page.php (la pausa retoma desde el mismo punto) */
.ec-reps.is-js .ec-reps__track { animation: none; will-change: transform; }
/* Logos con enlace (wp-admin → Marcas → «Enlace del logo») */
.ec-reps__item { transition: border-color .2s, box-shadow .2s, transform .2s; }
.ec-reps__item:has(.ec-reps__link):hover { border-color: var(--ec-red); box-shadow: 0 10px 22px -16px rgba(20, 26, 31, .45); transform: translateY(-2px); }
.ec-reps__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.ec-reps__link:focus-visible { outline: 2px solid var(--ec-red); outline-offset: 6px; border-radius: 6px; }
