/*
Theme Name: Electricieza
Theme URI: https://tienda.electricieza.es
Author: Electricieza (Claude)
Author URI: https://electricieza.es
Description: Tema WooCommerce de Electricieza — material solar y eléctrico en Cieza (Murcia). Diseño solar-yellow + slate, cabecera de 2 líneas, tarjetas de producto, precio PRO −12% y home de tienda. Reproduce el sistema de diseño .ez del prototipo Next.js.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 7.0
WC tested up to: 9.9
Text Domain: electricieza
*/

/* ===== Tokens del sistema de diseño .ez ===== */
:root {
  --ez-yellow: #F59E0B; --ez-yellow-dark: #D97706; --ez-yellow-50: #FEF3C7; --ez-yellow-100: #FDE68A;
  --ez-cyan: #0891B2; --ez-cyan-dark: #0E7490; --ez-cyan-50: #ECFEFF; --ez-cyan-100: #CFFAFE;
  --ez-ink: #0F172A; --ez-ink-2: #1E293B; --ez-muted: #64748B;
  --ez-line: #E2E8F0; --ez-line-2: #F1F5F9; --ez-bg: #FFFFFF; --ez-bg-2: #F8FAFC; --ez-bg-3: #F1F5F9; --ez-bg-dark: #020617;
  /* acentos legacy mapeados a yellow (herencia del prototipo) */
  --ez-blue: #F59E0B; --ez-blue-dark: #D97706; --ez-blue-50: #FEF3C7; --ez-blue-100: #FDE68A;
  --ez-green: #10B981; --ez-red: #DC2626;
  --ez-radius: 10px; --ez-radius-lg: 14px;
  --ez-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ez-display: "Inter", system-ui, sans-serif;
  --ez-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ez-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --ez-shadow: 0 4px 12px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --ez-shadow-lg: 0 12px 40px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ez-ink);
  font-family: var(--ez-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.admin-bar .ez-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ez-header { top: 46px; } }
a { color: var(--ez-blue-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--ez-display); margin: 0 0 .4em; letter-spacing: -0.01em; line-height: 1.15; color: var(--ez-ink); }
.ez-wrap { max-width: 2000px; margin: 0 auto; padding: 0 40px; }
.ez-svg { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* ===== Utility bar ===== */
.ez-utility { background: var(--ez-ink); color: #c9d4e3; font-size: 12px; }
.ez-utility .ez-wrap { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.ez-utility a { color: #fff; text-decoration: none; }
.ez-utility .l, .ez-utility .r { display: flex; gap: 18px; align-items: center; }
.ez-utility .r a:last-child { color: #FBBF24; font-weight: 600; }

/* ===== Header ===== */
.ez-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ez-line); }
.ez-header-top { border-bottom: 1px solid var(--ez-line-2); padding: 8px 0; font-size: 13px; }
.ez-header-top .ez-wrap { display: flex; justify-content: space-between; align-items: center; }
.ez-header-top .l, .ez-header-top .r { display: flex; gap: 18px; align-items: center; color: var(--ez-muted); flex-wrap: wrap; }
.ez-header-top a { color: inherit; text-decoration: none; }
.ez-header-top .pro { color: var(--ez-yellow); font-weight: 700; }
.ez-header-main { padding: 14px 0; }
.ez-header-main .ez-wrap { display: flex; align-items: center; gap: 24px; }
.ez-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.ez-logo strong { font-family: var(--ez-display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ez-ink); display: block; line-height: 1; }
.ez-logo span { font-size: 10.5px; color: var(--ez-muted); font-weight: 500; }
.ez-search { flex: 1; max-width: 560px; position: relative; }
.ez-search input { width: 100%; height: 42px; border: 1.5px solid var(--ez-line); border-radius: 10px; padding: 0 14px 0 42px; font: inherit; background: var(--ez-bg-2); outline: none; }
.ez-search input:focus { border-color: var(--ez-blue); background: #fff; }
.ez-search button { position: absolute; left: 0; top: 0; height: 42px; width: 42px; border: none; background: none; color: #94a3b8; cursor: pointer; }
.ez-header-actions { display: flex; gap: 6px; align-items: center; }
.ez-icon-btn { width: 42px; height: 42px; border-radius: 8px; border: none; background: transparent; color: #334155; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ez-icon-btn:hover { background: var(--ez-bg-3); }
.ez-cart-btn { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--ez-ink); color: #fff; border: none; border-radius: 8px; font-weight: 600; font-size: 13px; text-decoration: none; }
.ez-cart-btn .badge { padding: 2px 7px; background: var(--ez-yellow); color: var(--ez-ink); border-radius: 10px; font-weight: 800; font-size: 11px; }

/* ===== Category nav ===== */
.ez-catnav { background: var(--ez-bg-2); border-bottom: 1px solid var(--ez-line); font-size: 14px; }
.ez-catnav .ez-wrap { display: flex; align-items: center; gap: 4px; min-height: 46px; }
/* Botón "Todas las categorías" — alta especificidad para que el texto SIEMPRE sea blanco sobre el fondo oscuro */
.ez-catnav a.ez-catnav-all,
.ez-catnav a.ez-catnav-all:hover,
.ez-catnav a.ez-catnav-all:focus { display: flex; align-items: center; gap: 8px; background: var(--ez-ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 700; margin-right: 8px; white-space: nowrap; text-decoration: none; box-shadow: none; }
.ez-catnav a.ez-catnav-all svg { color: #fff; }
.ez-catnav a { text-decoration: none; color: var(--ez-ink-2); padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.ez-catnav a:hover, .ez-catnav a.active { background: #fff; color: var(--ez-blue); box-shadow: var(--ez-shadow-sm); }
.ez-catnav .spacer { flex: 1; }
.ez-catnav .pro-tag, .ez-catnav a.pro-tag:hover { display: inline-flex; align-items: center; gap: 6px; background: var(--ez-yellow); color: var(--ez-ink); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; text-decoration: none; white-space: nowrap; box-shadow: none; }

/* ===== Submenús desplegables del nav de categorías ===== */
.ez-catnav-item { position: relative; display: inline-flex; align-items: center; }
.ez-catnav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.ez-catnav-item > a .caret { width: 12px; height: 12px; opacity: .6; }
.ez-submenu { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--ez-line); border-top: 2px solid var(--ez-blue); border-radius: 0 0 12px 12px; box-shadow: var(--ez-shadow-lg); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 70; }
.ez-catnav-item:hover > .ez-submenu { display: flex; }
.ez-submenu a { padding: 9px 12px; border-radius: 8px; color: var(--ez-ink-2); font-weight: 500; font-size: 13px; display: flex; justify-content: space-between; gap: 14px; box-shadow: none; }
.ez-submenu a:hover { background: var(--ez-bg-2); color: var(--ez-blue); }
.ez-submenu a span.cnt { color: var(--ez-muted); font-size: 11px; }
.ez-submenu a.ez-sub-all { font-weight: 700; color: var(--ez-blue); border-bottom: 1px solid var(--ez-line); border-radius: 0; margin-bottom: 4px; }

/* ===== "Todas las categorías" — desplegable vertical (estilo AutoSolar) ===== */
.ez-allcats { position: relative; }
.ez-allcats-panel { position: absolute; top: 100%; left: 0; z-index: 80; display: none; width: 340px; max-width: 92vw; background: #fff; border: 1px solid var(--ez-line); border-top: 2px solid var(--ez-blue); border-radius: 0 0 14px 14px; box-shadow: var(--ez-shadow-lg); padding: 8px; }
.ez-allcats:hover .ez-allcats-panel { display: block; }
.ez-allcats-list .row > a { font-weight: 600; font-size: 14.5px; color: var(--ez-ink); padding: 10px; }
.ez-allcats-list .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--ez-blue-50); color: var(--ez-blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ez-allcats-list .nm { flex: 1; }
.ez-allcats-list .ez-cat-toggle { width: 34px; height: 38px; }
.ez-allcats-list .ez-subtree { margin: 2px 0 6px 42px; }

/* Neutraliza la maquetación inyectada por el plugin antiguo (por si quedara en caché): sin barra lateral, productos a todo el ancho */
.elec-shop-sidebar { display: none !important; }
.elec-shop-layout { display: block !important; }
.elec-shop-main { width: 100% !important; max-width: none !important; }

/* ===== Buttons (también mapea botones de WooCommerce) ===== */
.ez-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit, .woocommerce .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--ez-radius);
  padding: 12px 20px; font-weight: 600; font-size: 14px; font-family: inherit; text-decoration: none; cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s; background: var(--ez-ink); color: #fff; line-height: 1.2;
}
.ez-btn:active, .woocommerce .button:active { transform: translateY(1px); }
.ez-btn-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce #respond input#submit.alt, .woocommerce .single_add_to_cart_button, .woocommerce .checkout-button {
  background: var(--ez-blue) !important; color: #fff !important;
}
.ez-btn-primary:hover, .woocommerce .button.alt:hover, .woocommerce .single_add_to_cart_button:hover, .woocommerce .checkout-button:hover { background: var(--ez-blue-dark) !important; }
.ez-btn-yellow { background: var(--ez-yellow); color: var(--ez-ink); }
.ez-btn-yellow:hover { background: var(--ez-yellow-dark); }
.ez-btn-ghost { background: transparent; color: var(--ez-ink); border: 1.5px solid var(--ez-line); }
.ez-btn-dark { background: var(--ez-ink); color: #fff; }
.ez-btn-lg { padding: 14px 24px; font-size: 15px; }
.ez-btn-sm { padding: 8px 12px; font-size: 12px; border-radius: 8px; }
.ez-btn-block { width: 100%; }

/* ===== Pills / cards ===== */
.ez-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ez-blue-50); color: var(--ez-blue-dark); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ez-pill.yellow { background: #fff5d6; color: #8a5e00; }
.ez-pill.green { background: #e7f6ee; color: #1d6e4d; }
.ez-card { background: #fff; border: 1px solid var(--ez-line); border-radius: var(--ez-radius-lg); overflow: hidden; }

/* ===== Product cards (WooCommerce ul.products) ===== */
.woocommerce ul.products, .woocommerce-page ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto; margin: 0; float: none; }
.woocommerce ul.products li.product::before { content: none; }
/* WooCommerce añade pseudo-elementos clearfix que en un grid ocupan celdas y
   dejan la primera columna vacía. Los anulamos. */
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
.ez-product-card { background: #fff; border: 1px solid var(--ez-line); border-radius: var(--ez-radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; position: relative; transition: border-color .15s, box-shadow .15s; }
.ez-product-card:hover { border-color: var(--ez-blue); box-shadow: var(--ez-shadow); }
.ez-product-card .img { aspect-ratio: 1; background: var(--ez-bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ez-product-card .img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.ez-product-card .img img.woocommerce-placeholder, .ez-product-card .img img[src*="placeholder"] { opacity: .3; padding: 36px; mix-blend-mode: normal; }
.ez-product-card .body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ez-product-card .brand { font-size: 12px; font-weight: 700; color: var(--ez-blue); text-transform: uppercase; letter-spacing: .04em; }
.ez-product-card .name { font-size: 15.5px; font-weight: 600; color: var(--ez-ink); line-height: 1.35; min-height: 2.7em; text-decoration: none; display: block; }
.ez-product-card .name:hover { color: var(--ez-blue); }
.ez-product-card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.ez-product-card .price { font-family: var(--ez-display); font-size: 19px; font-weight: 800; color: var(--ez-ink); }
.ez-product-card .price .pro { display: block; font-size: 12.5px; color: var(--ez-blue-dark); font-weight: 700; margin-top: 2px; }
.ez-product-card .stock { font-size: 12px; color: var(--ez-green); font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ez-product-card .stock .dot { width: 6px; height: 6px; background: var(--ez-green); border-radius: 50%; }
.ez-product-card .stock.out { color: var(--ez-muted); }
.ez-product-card .stock.out .dot { background: var(--ez-muted); }
.ez-product-card .actions { padding: 0 14px 14px; }
.ez-product-card .actions .button, .ez-product-card .actions a.added_to_cart { width: 100%; background: var(--ez-blue); color: #fff; border-radius: 8px; padding: 10px; font-size: 13px; }
.ez-product-card .badge-corner { position: absolute; top: 10px; left: 10px; background: var(--ez-yellow); color: var(--ez-ink); font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 6px; z-index: 1; }

/* ===== Shop / archive layout ===== */
.ez-shop { background: var(--ez-bg-2); padding: 24px 0 60px; }
.ez-shop-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.ez-shop-sidebar { align-self: start; position: sticky; top: 170px; }
.ez-shop-sidebar .ez-card { padding: 16px 18px; margin-bottom: 16px; }
.ez-shop-sidebar h4 { font-size: 13px; margin-bottom: 10px; }
/* Árbol de categorías con acordeón */
.ez-cat-tree, .ez-subtree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ez-cat-tree .row { display: flex; align-items: center; }
.ez-cat-tree .row > a { flex: 1; color: var(--ez-ink-2); text-decoration: none; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.ez-cat-tree .row > a:hover, .ez-cat-tree a.current { color: var(--ez-blue); font-weight: 600; background: var(--ez-bg-2); }
.ez-cat-tree .cnt { color: var(--ez-muted); font-size: 11px; font-weight: 500; }
.ez-cat-toggle { width: 30px; height: 32px; border: none; background: none; color: var(--ez-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.ez-cat-toggle:hover { background: var(--ez-bg-2); color: var(--ez-blue); }
.ez-cat-toggle svg { transition: transform .15s; }
.ez-cat-tree .has-children.open > .row .ez-cat-toggle svg { transform: rotate(180deg); }
.ez-subtree { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--ez-line); }
.ez-subtree a { color: var(--ez-muted); font-size: 12.5px; text-decoration: none; display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.ez-subtree a:hover, .ez-subtree li.current a { color: var(--ez-blue); font-weight: 600; background: var(--ez-bg-2); }
.ez-subtree[hidden] { display: none; }
.ez-cat-hero { background: #fff; padding: 28px 0; border-bottom: 1px solid var(--ez-line); }
.ez-cat-hero h1 { font-size: 34px; }
.ez-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 14px 18px; background: #fff; border-radius: 12px; border: 1px solid var(--ez-line); }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--ez-muted); font-size: 14px; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select { border: 1.5px solid var(--ez-line); border-radius: 8px; padding: 8px 12px; font: inherit; }

/* ===== Single product ===== */
.woocommerce div.product { display: block; }
.woocommerce div.product .product_title { font-size: 30px; font-family: var(--ez-display); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ez-ink); font-family: var(--ez-display); font-weight: 800; font-size: 30px; }
.woocommerce div.product p.price ins { text-decoration: none; }
.ez-pro-box { margin-top: 14px; padding: 12px 14px; background: var(--ez-yellow); border-radius: 8px; font-size: 14px; }
.ez-pro-box strong { font-family: var(--ez-display); font-size: 18px; }
.woocommerce div.product form.cart .button { padding: 14px 24px; font-size: 15px; }
.woocommerce .quantity .qty { border: 1.5px solid var(--ez-line); border-radius: 8px; height: 48px; }

/* ===== Forms / fields (cart, checkout, account) ===== */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-page table.cart td.product-quantity input, .select2-container .select2-selection {
  border: 1.5px solid var(--ez-line); border-radius: 8px; padding: 10px 12px; font: inherit;
}
.woocommerce table.shop_table { border-radius: var(--ez-radius-lg); border-color: var(--ez-line); }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review { border: 1px solid var(--ez-line); border-radius: var(--ez-radius-lg); padding: 8px 18px; }

/* ===== Footer ===== */
.ez-footer { background: var(--ez-ink); color: #c9d4e3; padding: 40px 0 20px; font-size: 14px; }
.ez-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px; }
.ez-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.ez-footer a { color: #c9d4e3; text-decoration: none; display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.ez-footer a:hover { color: #fff; }
.ez-footer ul { list-style: none; margin: 0; padding: 0; }
.ez-footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 10px; }

/* ===== WhatsApp FAB ===== */
.ez-wa { position: fixed; bottom: 96px; right: 16px; width: 56px; height: 56px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,.4); z-index: 60; }
.ez-wa svg { width: 30px; height: 30px; fill: #fff; }
.ez-wa:hover { transform: scale(1.05); }

/* ===== Banner de cookies ===== */
.ez-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: var(--ez-ink); color: #e2e8f0; padding: 16px 24px; box-shadow: 0 -6px 24px rgba(0,0,0,.25); }
.ez-cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.ez-cookie p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; min-width: 280px; }
.ez-cookie a { color: var(--ez-yellow); }
.ez-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ez-cookie .ez-btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.ez-cookie .ez-btn-ghost:hover { border-color: #fff; }
@media (max-width: 600px) { .ez-cookie-btns { width: 100%; } .ez-cookie-btns .ez-btn { flex: 1; } }

/* ===== Botón "Consultar ticket" (arriba a la derecha) ===== */
.ez-header-top a.ez-ticket-btn { background: var(--ez-yellow); color: var(--ez-ink); padding: 5px 13px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.ez-header-top a.ez-ticket-btn:hover { background: var(--ez-yellow-dark); color: var(--ez-ink); }
.ez-header-top a.ez-ticket-btn svg { width: 15px; height: 15px; }

/* ===== Página de Contacto ===== */
.ez-contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 28px; }
.ez-cm { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--ez-line); border-radius: 14px; background: #fff; text-decoration: none; transition: .15s; }
.ez-cm:hover { border-color: var(--ez-blue); box-shadow: var(--ez-shadow-lg); transform: translateY(-2px); }
.ez-cm .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--ez-blue-50); color: var(--ez-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ez-cm .ic svg { width: 22px; height: 22px; }
.ez-cm .tx { display: flex; flex-direction: column; line-height: 1.3; }
.ez-cm .tx strong { color: var(--ez-ink); font-size: 15px; }
.ez-cm .tx span { color: var(--ez-muted); font-size: 13px; }
.ez-cm-wa .ic { background: #dcfce7; color: #16a34a; }
.ez-contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.ez-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ez-contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ez-ink-2); }
.ez-contact-list .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--ez-bg-2); color: var(--ez-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ez-contact-list .ic svg { width: 18px; height: 18px; }
.ez-contact-list a { color: var(--ez-ink-2); text-decoration: none; }
.ez-contact-list a:hover { color: var(--ez-blue); }

/* ===== Campos de formulario reutilizables (contacto + tickets) ===== */
.ez-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ez-field { margin-bottom: 14px; }
.ez-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ez-ink-2); }
.ez-field input, .ez-field textarea { width: 100%; border: 1.5px solid var(--ez-line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; outline: none; background: #fff; box-sizing: border-box; }
.ez-field input:focus, .ez-field textarea:focus { border-color: var(--ez-blue); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.ez-field textarea { resize: vertical; min-height: 120px; }
.ez-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--ez-muted); margin: 2px 0 18px; }
.ez-consent input { margin-top: 3px; }
.ez-consent a { color: var(--ez-blue); }
.ez-form-note { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; font-size: 14px; }
.ez-form-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ez-form-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Home sections ===== */
.ez-sec { padding: 48px 0; }
.ez-sec-bg { background: var(--ez-bg-2); }
.ez-sec-dark { background: var(--ez-ink); color: #fff; }
.ez-sec-dark h2, .ez-sec-dark h3, .ez-sec-dark h4 { color: #fff; }
.ez-hero { padding: 48px 0 0; }
.ez-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.ez-hero h1 { font-size: 52px; line-height: 1; letter-spacing: -.025em; }
.ez-hero h1 .accent { color: var(--ez-blue); }
.ez-hero p { font-size: 17px; color: var(--ez-ink-2); margin-top: 20px; line-height: 1.55; max-width: 540px; }
.ez-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ez-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ez-usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--ez-line); margin-top: 40px; }
.ez-usp .ic { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; background: var(--ez-blue-50); color: var(--ez-blue); align-items: center; justify-content: center; flex-shrink: 0; }
.ez-icon-box { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.ez-marcas { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--ez-line); border-radius: 12px; overflow: hidden; }
.ez-marcas div { padding: 24px 12px; text-align: center; font-family: var(--ez-display); font-weight: 800; font-size: 15px; color: var(--ez-ink-2); border-right: 1px solid var(--ez-line); }
.ez-marcas div:last-child { border-right: none; }
.ez-pro-banner { padding: 48px 0; background: linear-gradient(135deg, var(--ez-yellow) 0%, #ffd966 100%); }
.ez-pro-banner .ez-wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.ez-pro-banner h2 { font-size: 32px; color: var(--ez-ink); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .ez-footer-grid { grid-template-columns: 1fr 1fr; }
  .ez-shop-grid { grid-template-columns: 220px 1fr; }
  .ez-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ez-usp { grid-template-columns: repeat(2, 1fr); }
  .ez-hero h1 { font-size: 44px; }
  .ez-marcas { grid-template-columns: repeat(4, 1fr); }
  .ez-megamenu { grid-template-columns: repeat(3, minmax(150px,1fr)); }
}
@media (max-width: 880px) {
  /* Servicios e instalaciones grid de 5 → 2/3 columnas en tablet */
  .ez-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ez-contact-wrap { grid-template-columns: 1fr; }
  .ez-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .ez-wrap { padding: 0 16px; }
  .ez-catnav .ez-wrap { overflow-x: auto; }
  .ez-catnav-item:hover > .ez-submenu, .ez-allcats:hover .ez-allcats-panel { display: none; }
  .ez-utility { display: none; }
  .ez-header-top .l { display: none; }
  .ez-hero-grid, .ez-pro-banner .ez-wrap { grid-template-columns: 1fr; }
  .ez-hero h1 { font-size: 38px; }
  .ez-grid-3, .ez-grid-4, .ez-usp, .ez-marcas { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .ez-shop-grid { grid-template-columns: 1fr; }
  .ez-shop-sidebar { display: none; }
  .ez-footer-grid { grid-template-columns: 1fr; }
  .ez-search { order: 3; flex-basis: 100%; max-width: none; }
  .ez-header-main .ez-wrap { flex-wrap: wrap; }
  .ez-ticket-form { grid-template-columns: 1fr !important; }
  .ez-contact-methods { grid-template-columns: 1fr; }
  .ez-hero h1 { font-size: 34px; }
  .ez-sec { padding: 36px 0; }
  .ez-cat-hero h1 { font-size: 28px; }
  .woocommerce div.product .product_title { font-size: 24px; }
}
@media (max-width: 420px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .ez-grid-4, .ez-grid-3, .ez-usp, .ez-marcas { grid-template-columns: 1fr; }
}

/* ===== Ancho: aprovechar la pantalla (menos margen lateral) =====
   Especificidad extra (body .ez-wrap) para ganar a una regla antigua
   max-width:1680px que quedó en el CSS Adicional del Personalizador. */
body .ez-wrap { max-width: 2000px; padding-left: 28px; padding-right: 28px; }
@media (max-width: 768px) { body .ez-wrap { padding-left: 16px; padding-right: 16px; } }

/* ===== Accesibilidad: texto más grande y legible ===== */
body { font-size: 17px; line-height: 1.62; }
.ez-header-top { font-size: 14px; }
.ez-catnav { font-size: 15px; }
.ez-cart-btn { font-size: 14px; }
.ez-submenu a { font-size: 14px; }
.ez-allcats-list .row > a { font-size: 15.5px; }
.ez-btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce .button { font-size: 15px; }
.ez-pill { font-size: 14px; }
.ez-product-card .brand { font-size: 13px; }
.ez-product-card .name { font-size: 16.5px; }
.ez-product-card .price { font-size: 21px; }
.ez-product-card .price .pro { font-size: 13.5px; }
.ez-product-card .stock { font-size: 13px; }
.ez-product-card .actions .button, .ez-product-card .actions a.added_to_cart { font-size: 14.5px; }
.ez-cat-tree .row > a { font-size: 14px; }
.ez-subtree a { font-size: 13.5px; }
.woocommerce .woocommerce-result-count { font-size: 15px; }
.ez-footer { font-size: 15px; }
.ez-footer h4 { font-size: 16px; }
.ez-hero p { font-size: 18.5px; }
.ez-field label { font-size: 13.5px; }
.ez-field input, .ez-field textarea { font-size: 16px; }
.ez-cm .tx span { font-size: 14px; }
.ez-contact-list li { font-size: 15px; }
