/*
Theme Name: Electri-Car
Author: Equipo Electri-Car
Description: Tema de bloques para Electri-Car. Landing y tienda WooCommerce con la marca v0.2 (logo redibujado, azul eléctrico #0810EB, verde lima, azul noche).
Version: 0.2.2
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: electri-car
*/

/* =========================================================
   Electri-Car v0.2 · diseño con la marca nueva.
   Solo estilos: la funcionalidad (shortcodes, plugin) no cambia.
   ========================================================= */

/* ---------- Base ---------- */
:root {
	--ec-azul: #0810eb;
	--ec-lima: #a3c846;
	--ec-noche: #07143f;
	--ec-pastel: #c9d4ff;
	--ec-niebla: #eef0fb;
	--ec-texto: #3a4566;
	--ec-borde: #dde1f2;
	--ec-oferta: #d9132a;
	--ec-lado: max(24px, calc((100% - 1240px) / 2));
	--ec-radio: 18px;
}
body { -webkit-font-smoothing: antialiased; color: var(--ec-noche); }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-group { box-sizing: border-box; }
h1, h2, h3 { letter-spacing: -.01em; }

/* Subrayado lima, el mismo del logo */
.ec-sub { position: relative; display: inline-block; background: transparent !important; color: inherit; }
.ec-hero .ec-sub { color: var(--ec-lima); }
.ec-sub::after { content: ""; position: absolute; left: 4px; right: -2px; bottom: -.1em; height: .11em; min-height: 5px; background: var(--ec-lima); transform: skewX(-14deg); border-radius: 2px; }

/* ---------- Barra superior ---------- */
.ec-topbar { background: var(--ec-lima); padding: 7px var(--ec-lado); text-align: center; }
.ec-topbar p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ec-noche); }
.ec-topbar a { color: var(--ec-noche); }

/* ---------- Cabecera fija (blanca) ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
.ec-header {
	background: #fff; border-bottom: 1px solid var(--ec-borde);
	padding: 14px var(--ec-lado);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
}
.ec-header .wp-block-site-title { margin: 0; }
.ec-brand { display: flex; align-items: center; gap: 12px; }
.ec-brand .wp-block-site-title a { color: var(--ec-azul); text-decoration: none; font-family: 'Exo 2', sans-serif; font-style: italic; font-weight: 900; font-size: 28px; line-height: 1; }
.ec-brand .wp-block-site-logo ~ .wp-block-site-title, .ec-brand .ec-logo ~ .wp-block-site-title { display: none; }
.ec-logo { margin: 0; }
.ec-logo img { display: block; height: auto; max-width: 200px; }
.ec-brand .wp-block-site-logo img { height: auto; max-height: 52px; width: auto; max-width: 200px; display: block; }
.ec-header .wp-block-search { flex: 1 1 280px; max-width: 520px; min-width: 200px; margin: 0; }
.ec-header .wp-block-search__inside-wrapper { background: var(--ec-niebla); border-radius: 12px; padding: 4px 4px 4px 16px; border: 0; }
.ec-header .wp-block-search__input { border: 0; background: transparent; color: var(--ec-noche); font-size: 16px; padding: 9px 0; outline: none; }
.ec-header .wp-block-search__input::placeholder { color: #6b7390; }
.ec-header .wp-block-search__button { background: var(--ec-azul); color: #fff; border: 0; border-radius: 9px; min-width: 40px; min-height: 40px; margin: 0; }
.ec-header .wp-block-search__button svg { fill: currentColor; }
.ec-nav-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.ec-header .ec-nav-wrap { margin-left: auto; }
.ec-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; }
.ec-menu p { margin: 0; }
.ec-menu a { color: var(--ec-noche) !important; font-weight: 600; font-size: 16px; text-decoration: none; }
.ec-menu a:hover { color: var(--ec-azul) !important; }
.ec-header .wp-block-navigation a,
.ec-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--ec-noche) !important; font-weight: 600; font-size: 16px; text-decoration: none; }
.ec-header .wp-block-woocommerce-customer-account a,
.ec-header .wc-block-mini-cart__button { border: 0 !important;
	color: var(--ec-noche) !important; background: var(--ec-niebla); border-radius: 50%;
	width: 42px; height: 42px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; position: relative;
}
.ec-header .wp-block-woocommerce-customer-account svg,
.ec-header .wc-block-mini-cart__icon,
.ec-header .wc-block-mini-cart__button svg { fill: currentColor !important; color: var(--ec-noche) !important; width: 24px; height: 24px; }
.ec-header .wc-block-mini-cart__badge, .ec-header .wc-block-mini-cart__quantity-badge .wc-block-mini-cart__badge { background: var(--ec-azul) !important; color: #fff !important; border-color: #fff !important; }
.ec-header .wc-block-mini-cart__amount { display: none; }

/* ---------- Secciones ---------- */
.ec-section { padding: 88px var(--ec-lado); }
.ec-niebla { background: var(--ec-niebla); }
.ec-section + .ec-section:not(.ec-niebla):not(.ec-about) { padding-top: 0; }
.ec-section h2 { font-size: clamp(30px, 4vw, 42px); margin: 0; color: var(--ec-noche); }
.ec-eyebrow { color: var(--ec-azul); font-weight: 700; font-size: 15px; margin: 0 0 10px; }
.ec-lead { font-size: 19px; line-height: 1.6; color: var(--ec-texto); }
.ec-shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 36px; }
.ec-shead > * { margin: 0 !important; }
.ec-more { margin: 0; font-weight: 700; font-size: 16px; }
.ec-more a { color: var(--ec-azul); text-decoration: none; }
.ec-more a:hover { text-decoration: underline; }

/* ---------- Botones ---------- */
.wp-block-button__link { font-weight: 700; font-size: 17px; border-radius: 12px; padding: 14px 26px; text-decoration: none; transition: filter .15s, transform .15s; }
.wp-block-button__link:hover { filter: brightness(.95); transform: translateY(-1px); }
.ec-btn-lima .wp-block-button__link { background: var(--ec-lima); color: var(--ec-noche); }
.ec-btn-borde .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; padding: 12px 24px; }
.ec-btn-noche .wp-block-button__link { background: var(--ec-noche); color: #fff; }
.ec-btn-azul .wp-block-button__link { background: var(--ec-azul); color: #fff; }
.ec-btn-wa .wp-block-button__link { background: var(--ec-lima); color: var(--ec-noche); font-size: 15px; padding: 10px 18px; border-radius: 12px; }

/* ---------- Portada ---------- */
.ec-hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		url(assets/electri-car-decor.svg) no-repeat right -140px top -90px / 760px auto,
		radial-gradient(60% 80% at 85% 30%, rgba(8,16,235,.55), transparent 70%),
		var(--ec-noche);
	padding: 84px var(--ec-lado) 96px;
}
.ec-hero .ec-hero-cols { margin: 0; gap: 56px; position: relative; }
.ec-hero .ec-etiqueta { display: inline-flex; align-items: center; gap: 8px; color: var(--ec-lima); font-weight: 600; font-size: 15px; margin: 0 0 18px; }
.ec-hero .ec-etiqueta::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--ec-i-bolt) center / contain no-repeat; mask: var(--ec-i-bolt) center / contain no-repeat; }
.ec-hero h1 { color: #fff; font-size: clamp(42px, 5.6vw, 68px); line-height: 1.04; margin: 0; }
.ec-hero .ec-hero-lead { color: var(--ec-pastel); font-size: 20px; line-height: 1.55; max-width: 520px; margin: 28px 0 34px; }
.ec-hero .wp-block-buttons { gap: 14px; }
.ec-trust { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 40px 0 0; font-size: 15px; color: var(--ec-pastel); }
.ec-trust span { display: inline-flex; align-items: center; gap: 8px; }
.ec-trust span::before { content: ""; width: 18px; height: 18px; background: var(--ec-lima); -webkit-mask: var(--ec-i-check) center / contain no-repeat; mask: var(--ec-i-check) center / contain no-repeat; }

/* Caja del buscador por vehículo */
.ec-finder { background: #fff; color: var(--ec-noche); border-radius: 22px; padding: 30px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.ec-finder h2 { font-size: 28px; margin: 0; color: var(--ec-noche); }
.ec-finder > p { font-size: 15px; color: var(--ec-texto); margin: 6px 0 18px; }
.ec-finder .ecc-filtro { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; background: transparent; margin: 0; }
.ec-finder .ecc-filtro label { font-size: 13px; color: var(--ec-texto); }
.ec-finder .ecc-filtro button { grid-column: 1 / -1; }
.ec-finder .wp-block-search__inside-wrapper { border: 1.5px solid var(--ec-borde); border-radius: 12px; padding: 4px; }
.ec-finder .wp-block-search__input { border: 0; font-size: 16px; padding: 10px 12px; }
.ec-finder .wp-block-search__button { background: var(--ec-azul); color: #fff; border: 0; border-radius: 9px; font-weight: 700; padding: 10px 20px; margin: 0; }

/* Filtro del plugin: mismo estilo en portada, buscador y tienda */
.ecc-filtro { border-color: var(--ec-borde); border-radius: 14px; }
.ecc-filtro label { color: var(--ec-noche); font-weight: 600; }
.ecc-filtro select {
	font-family: inherit; min-height: 50px; border: 1.5px solid var(--ec-borde); border-radius: 12px; font-size: 16px; color: var(--ec-noche);
	padding: 10px 40px 10px 14px; appearance: none; -webkit-appearance: none;
	background: #fff var(--ec-i-chev) no-repeat right 14px center / 16px;
}
.ecc-filtro select:focus { border-color: var(--ec-azul); outline: 2px solid rgba(8,16,235,.2); outline-offset: 1px; }
.ecc-filtro button { font-family: inherit; background: var(--ec-azul) !important; color: #fff; border-radius: 12px; min-height: 52px; font-size: 16px; font-weight: 700; }
.ecc-filtro button:hover { filter: brightness(1.1); }
/* Sugerencias del buscador del plugin con el azul de marca */
.ecc-sug-p, .ecc-sug-all { color: var(--ec-azul) !important; }
.ecc-sug-u { background: var(--ec-lima) !important; }

/* ---------- Categorías ---------- */
.ec-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; counter-reset: ec-t; }
.ec-grid > .ec-tile { margin: 0; }
.ec-tile {
	position: relative; counter-increment: ec-t; background: var(--ec-niebla); border-radius: var(--ec-radio);
	padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; min-height: 190px; transition: transform .15s, box-shadow .15s;
}
.ec-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(7,20,63,.45); }
.ec-tile::before {
	content: "0" counter(ec-t); width: 56px; height: 56px; border-radius: 14px; margin-bottom: 10px;
	background: var(--ec-azul); color: #fff; display: flex; align-items: center; justify-content: center;
	font-family: 'Exo 2', sans-serif; font-style: italic; font-weight: 900; font-size: 22px;
}
.ec-tile:first-child { background: var(--ec-azul); }
.ec-tile:first-child::before { background: var(--ec-lima); color: var(--ec-noche); }
.ec-tile:first-child h3 a { color: #fff; }
.ec-tile:first-child p { color: var(--ec-pastel); }
.ec-tile h3 { margin: 0; font-size: 19px; line-height: 1.15; }
.ec-tile h3 a { color: var(--ec-noche); text-decoration: none; }
.ec-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--ec-radio); }
.ec-tile p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ec-texto); }

/* ---------- WooCommerce: tarjetas de producto ---------- */
.woocommerce ul.products, .wc-block-grid__products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; }
.ec-section .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; position: relative; overflow: hidden;
	background: #fff; border: 1px solid var(--ec-borde); border-radius: var(--ec-radio); padding: 0 0 18px;
	display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s;
}
.woocommerce ul.products li.product:hover { box-shadow: 0 18px 36px -22px rgba(7,20,63,.5); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.woocommerce ul.products li.product a img { border-radius: 0; margin: 0 0 10px !important; aspect-ratio: 1 / 1; object-fit: contain; background: var(--ec-niebla); width: 100%; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: Barlow, sans-serif; font-style: normal; font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ec-noche); padding: 0 18px !important; margin: 0;
}
.woocommerce ul.products li.product .price { color: var(--ec-azul) !important; font-weight: 700; font-size: 21px; padding: 0 18px; margin: 4px 0 0 !important; display: flex; gap: 10px; align-items: baseline; }
.woocommerce ul.products li.product .price del { color: #8a91aa; font-size: 15px; font-weight: 500; order: 2; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; background: transparent; }
.woocommerce span.onsale,
.woocommerce ul.products li.product span.onsale {
	position: absolute; top: 14px; left: 14px; right: auto; width: auto; min-width: 0; min-height: 0; margin: 0; padding: 10px 18px 9px;
	border-radius: 10px; line-height: 1.1; transform: skewX(-8deg); text-align: center; z-index: 2;
	background: var(--ec-oferta); color: #fff; font-family: 'Exo 2', sans-serif; font-style: italic; font-weight: 900; font-size: 21px;
	letter-spacing: .02em; text-transform: uppercase; box-shadow: 0 8px 18px -6px rgba(217,19,42,.6);
}
/* Producto en oferta: borde rojo y precio rebajado en rojo */
.woocommerce ul.products li.product.sale { border: 2px solid var(--ec-oferta); }
.woocommerce ul.products li.product.sale .price ins { color: var(--ec-oferta); }
.woocommerce ul.products li.product.sale .price { font-size: 23px; }
.woocommerce div.product span.onsale { top: 16px; left: 16px; font-size: 20px; }
.woocommerce ul.products li.product .button, .woocommerce a.button, .woocommerce button.button {
	text-decoration: none; background: var(--ec-noche); color: #fff; border-radius: 11px; font-weight: 600; font-size: 15px; padding: 12px; text-align: center; min-height: 44px; box-sizing: border-box;
}
.woocommerce ul.products li.product .button { margin: auto 18px 0 !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ec-azul); color: #fff; }
.woocommerce a.added_to_cart { padding: 6px 18px 0; font-size: 14px; color: var(--ec-azul); }
.woocommerce .woocommerce-ordering select, .woocommerce-result-count { font-size: 16px; }
.woocommerce .woocommerce-ordering select { border: 1.5px solid var(--ec-borde); border-radius: 10px; padding: 8px 12px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 12px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--ec-niebla); color: var(--ec-noche); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ec-azul); color: #fff; }

/* ---------- Ventajas ---------- */
.ec-ventajas { background: var(--ec-azul); padding: 72px var(--ec-lado); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px 40px; }
.ec-ventajas > .wp-block-group { margin: 0; position: relative; padding-left: 74px; min-height: 54px; }
.ec-ventajas > .wp-block-group::before { content: ""; position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 14px; background: var(--ec-lima) var(--ec-i) center / 26px no-repeat; }
.ec-ventajas > .wp-block-group:nth-child(1) { --ec-i: var(--ec-i-store-n); }
.ec-ventajas > .wp-block-group:nth-child(2) { --ec-i: var(--ec-i-wa-n); }
.ec-ventajas > .wp-block-group:nth-child(3) { --ec-i: var(--ec-i-shield-n); }
.ec-ventajas h3 { color: #fff; font-size: 22px; margin: 0; }
.ec-ventajas h3 a { color: #fff; text-decoration: none; }
.ec-ventajas p { color: #dde3ff; font-size: 16px; line-height: 1.5; margin: 6px 0 0; }

/* ---------- Quiénes somos + carrusel de destacados ---------- */
.ec-about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ec-about > * { margin: 0 !important; }
.ec-about-media {
	border-radius: 24px; padding: 40px; min-height: 420px; display: flex; align-items: center; justify-content: center;
	background: url(assets/electri-car-decor.svg) no-repeat right -12% bottom -18% / 70% auto, linear-gradient(135deg, #0d1a55, var(--ec-azul));
}
.ec-about-text h2 { margin: 0 0 18px; }
.ec-about-text .ec-lead { margin: 0 0 24px; }

/* Carrusel (mismo marcado y script de siempre) */
.ec-slide { position: relative; width: 100%; max-width: 340px; margin: 0 auto; }
.ec-slide__items { display: grid; }
.ec-slide__item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ec-slide__item.is-on { opacity: 1; visibility: visible; }
.ec-slide__card { display: flex; flex-direction: column; height: 460px; box-sizing: border-box; background: #fff; border-radius: 22px; padding: 16px 16px 70px; color: var(--ec-noche); text-decoration: none; box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); position: relative; }
.ec-slide__img { display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-height: 0; border-radius: 14px; background: var(--ec-niebla); overflow: hidden; }
.ec-slide__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ec-slide__tag { position: absolute; top: 28px; left: 28px; background: var(--ec-lima); color: var(--ec-noche); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 8px; transform: skewX(-8deg); }
.ec-slide__name { display: block; margin-top: 14px; font-family: Barlow, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; }
.ec-slide__price { display: block; margin-top: 4px; font-size: 20px; font-weight: 700; color: var(--ec-azul); }
.ec-slide__price del { color: #8a91aa; font-size: 15px; font-weight: 500; margin-left: 6px; }
.ec-slide__price ins { text-decoration: none; }
.ec-slide__dots { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ec-slide__dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--ec-pastel); cursor: pointer; transition: width .3s, background .3s; }
.ec-slide__dot.is-on { width: 26px; background: var(--ec-azul); }
.ec-slide__nav { position: relative; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 99px; background: var(--ec-niebla); cursor: pointer; flex: none; }
.ec-slide__nav:hover { background: var(--ec-pastel); }
.ec-slide__nav::before { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--ec-noche); border-width: 0 0 2px 2px; }
.ec-slide__prev { margin-right: 6px; }
.ec-slide__next { margin-left: 6px; }
.ec-slide__prev::before { left: 14px; transform: translateY(-50%) rotate(45deg); }
.ec-slide__next::before { left: 10px; transform: translateY(-50%) rotate(-135deg); }
.ec-slide.is-calm .ec-slide__item { transition: none; }

/* ---------- Contacto ---------- */
.ec-contacto { background: var(--ec-lima); padding: 56px var(--ec-lado); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ec-contacto h2 { flex: 1 1 420px; font-size: clamp(28px, 3.4vw, 38px); margin: 0; color: var(--ec-noche); }

/* ---------- Buscador grande (patrón opcional) ---------- */
.ec-buscador-caja { margin-top: 32px; background: #fff; border-radius: 22px; padding: 20px; }
.ec-buscador-caja .wp-block-search__input { border: 1.5px solid var(--ec-borde); border-radius: 12px; font-size: 17px; padding: 14px 16px; }
.ec-buscador-caja .wp-block-search__button { background: var(--ec-azul); color: #fff; border: 0; border-radius: 12px; font-weight: 700; font-size: 17px; padding: 14px 30px; }
.ec-buscador-caja .ecc-filtro { margin-top: 16px; border: 0; padding: 0; background: transparent; }

/* ---------- Pie ---------- */
.ec-footer { background: var(--ec-noche); color: var(--ec-pastel); padding: 64px var(--ec-lado) 28px; }
.ec-footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.ec-footer-cols > * { margin: 0 !important; }
.ec-footer p { margin: 0; font-size: 15px; line-height: 1.7; }
.ec-footer a { color: #fff; text-decoration: none; }
.ec-footer a:hover { color: var(--ec-lima); }
.ec-footer h4 { color: #fff; font-family: Barlow, sans-serif; font-style: normal; font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.ec-logo-pie { margin: 0 0 16px; }
.ec-logo-pie img { display: block; height: auto; }
.ec-footer-marca p { max-width: 320px; }
.ec-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px !important; padding-top: 20px; font-size: 13px !important; }
.ec-redes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ec-redes a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 12px; padding: 8px 16px; min-height: 24px; }
.ec-redes a:hover { background: #fff; color: var(--ec-noche); }
.ec-wa { color: var(--ec-azul); font-weight: 600; }

/* ---------- Tienda: título y barra lateral ---------- */
.ec-banda { background: var(--ec-noche) url(assets/electri-car-decor.svg) no-repeat right -60px center / 360px auto; padding: 52px var(--ec-lado); }
.ec-banda h1 { color: #fff; font-size: clamp(36px, 5vw, 52px); margin: 0; }
.ec-banda p { color: var(--ec-pastel); font-size: 18px; margin: 10px 0 0; }
.ec-tienda { padding: 48px var(--ec-lado); gap: 40px; }
.ec-lado details { border: 0; padding: 0; }
.ec-lado summary { font-weight: 700; font-size: 16px; min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.ec-lado ul { list-style: none; margin: 0; padding: 0; }
.ec-lado li a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--ec-noche); text-decoration: none; font-size: 16px; }
.ec-lado li a:hover { background: var(--ec-niebla); color: var(--ec-azul); }
.ec-lado .ecc-filtro { margin-bottom: 24px; flex-direction: column; align-items: stretch; background: var(--ec-niebla); border: 0; padding: 18px; }
.ec-lado .ecc-filtro label { flex: none; }
.ec-aviso-retiro { background: var(--ec-noche); color: #fff; border-radius: var(--ec-radio); padding: 22px; margin-top: 28px; }
.ec-aviso-retiro h3 { color: var(--ec-lima); font-size: 20px; margin: 0; }
.ec-aviso-retiro p { color: var(--ec-pastel); font-size: 15px; margin: 8px 0 0; }
.ecc-aviso { background: var(--ec-niebla); border-radius: 12px; padding: 12px 16px; }

/* ---------- Ficha de producto ---------- */
.single-product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ec-azul) !important; font-weight: 700; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3.4vw, 40px); }
.woocommerce div.product form.cart .button { background: var(--ec-azul); color: #fff; border-radius: 12px; min-height: 50px; padding: 12px 28px; font-size: 16px; }
.woocommerce div.product form.cart .button:hover { background: var(--ec-noche); }
.woocommerce div.product form.cart .qty { min-height: 50px; border: 1.5px solid var(--ec-borde); border-radius: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--ec-azul); }

/* ---------- Íconos (SVG en línea, sin archivos extra) ---------- */
:root {
	--ec-i-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
	--ec-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	--ec-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307143f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--ec-i-store-n: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307143f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l2-5h14l2 5M4 9v11h16V9M3 9h18M9 20v-6h6v6'/%3E%3C/svg%3E");
	--ec-i-wa-n: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307143f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l1.6-4.6A9 9 0 1 1 8 19.6z'/%3E%3Cpath d='M9 9c0 3 3 6 6 6l1-1.5-2-1-1 .8c-1-.4-2-1.4-2.4-2.4l.8-1-1-2z'/%3E%3C/svg%3E");
	--ec-i-shield-n: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307143f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.5 9 8 11 4.5-2 8-6 8-11V5z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* ---------- Tableta y móvil ---------- */
@media (max-width: 1100px) {
	.ec-grid { grid-template-columns: repeat(3, 1fr); }
	.ec-section .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.ec-hero { padding: 44px var(--ec-lado) 56px; background-size: 460px auto, auto, auto; background-position: right -200px top -40px, center, center; }
	.ec-hero .ec-hero-cols { flex-wrap: wrap !important; gap: 36px; }
	.ec-hero .ec-hero-cols > .wp-block-column { flex-basis: 100% !important; }
	.ec-hero .ec-hero-lead { font-size: 17px; margin: 20px 0 26px; }
	.ec-trust { margin-top: 26px; gap: 10px 18px; font-size: 14px; }
	.ec-finder { padding: 24px; }
	.ec-about { grid-template-columns: 1fr; gap: 32px; }
	.ec-about-media { min-height: 0; padding: 28px; }
	.ec-footer-cols { grid-template-columns: 1fr 1fr; }
	.ec-footer-marca { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.ec-section { padding-top: 56px; padding-bottom: 56px; }
	.ec-tienda { padding-top: 32px; }
	.ec-header { padding-top: 10px; padding-bottom: 12px; gap: 10px 14px; }
	.ec-logo img, .ec-logo { width: 160px !important; }
	.ec-header .wp-block-search { order: 9; flex-basis: 100%; max-width: none; }
	/* Móvil: fila 1 logo + cuenta + carrito; fila 2 menú + WhatsApp; fila 3 buscador */
	.ec-header .ec-nav-wrap { display: contents; }
	.ec-brand { order: 1; margin-right: auto; }
	.ec-header .wp-block-woocommerce-customer-account { order: 2; }
	.ec-header .wp-block-woocommerce-mini-cart { order: 3; }
	.ec-menu { order: 4; flex: 1 1 auto; gap: 6px 18px; }
	.ec-menu a { font-size: 15px; }
	.ec-header .wp-block-buttons { order: 5; margin: 0; }
	.ec-btn-wa .wp-block-button__link { padding: 8px 14px; font-size: 14px; }
	.ec-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ec-tile { min-height: 0; padding: 18px; }
	.ec-section .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 15px; padding: 0 12px !important; }
	.woocommerce ul.products li.product .price { font-size: 18px; padding: 0 12px; }
	.woocommerce ul.products li.product .button { margin: auto 12px 0 !important; font-size: 14px; }
	.ec-finder .ecc-filtro { grid-template-columns: 1fr 1fr; }
	.ec-slide__card { height: 420px; }
}
@media (max-width: 480px) {
	.ec-footer-cols { grid-template-columns: 1fr; }
}

/* =========================================================
   0.2.2 · Encabezado: todo centrado en una línea, logo
   proporcional y versión compacta al bajar (assets/header.js).
   ========================================================= */
.ec-topbar { max-height: 44px; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.ec-topbar p { transition: opacity .2s ease; }
.ec-header { align-items: center; padding-top: 16px; padding-bottom: 16px; transition: padding .25s ease; }
/* WordPress separa los bloques hijos con margen superior: eso descuadraba la fila */
.ec-header > *, .ec-brand > *, .ec-nav-wrap > *, .ec-header .wp-block-buttons, .ec-header .wp-block-button { margin: 0 !important; }
.ec-brand, .ec-nav-wrap, .ec-menu { align-items: center; }
.ec-logo img { width: 250px !important; max-width: none; transition: width .25s ease; }
.ec-header .wp-block-search__inside-wrapper { height: 50px; box-sizing: border-box; align-items: center; padding: 5px 5px 5px 16px; transition: height .25s ease; }
.ec-header .wp-block-search__input { padding: 0; height: 100%; }
.ec-header .wp-block-search__button { height: 40px; min-height: 0; width: 44px; padding: 0; }
.ec-header .wp-block-woocommerce-customer-account a, .ec-header .wc-block-mini-cart__button { width: 44px; height: 44px; }
.ec-header .wp-block-woocommerce-customer-account img { border-radius: 50%; width: 28px; height: 28px; }
.ec-btn-wa .wp-block-button__link { padding: 11px 20px; line-height: 1.2; }

/* Al bajar */
.ec-scrolled .ec-topbar { max-height: 4px; padding-top: 0; padding-bottom: 0; }
.ec-scrolled .ec-topbar p { opacity: 0; }
.ec-scrolled .ec-header { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 6px 20px -12px rgba(7,20,63,.35); }
.ec-scrolled .ec-logo img { width: 190px !important; }
.ec-scrolled .ec-header .wp-block-search__inside-wrapper { height: 42px; }
.ec-scrolled .ec-header .wp-block-search__button { height: 34px; }
.ec-scrolled .ec-header .wp-block-woocommerce-customer-account a, .ec-scrolled .ec-header .wc-block-mini-cart__button { width: 38px; height: 38px; }
.ec-scrolled .ec-btn-wa .wp-block-button__link { padding: 8px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
	.ec-topbar, .ec-topbar p, .ec-header, .ec-logo img, .ec-header .wp-block-search__inside-wrapper { transition: none; }
}
@media (max-width: 781px) {
	.ec-logo img { width: 170px !important; }
	.ec-scrolled .ec-logo img { width: 140px !important; }
	.ec-scrolled .ec-menu, .ec-scrolled .ec-header .wp-block-buttons { display: none; }
}
