/* EGAM · cabecera, pie y ajustes globales del rediseño (nov 2026).
   Se carga después de los CSS existentes y solo sobrescribe lo necesario. */
:root{--v2-red:#e42b35;--v2-red-dark:#bf2029;--v2-ink:#191a1d;--v2-ink-2:#27282d;--v2-muted:#5e6067;--v2-line:#e4e4e6;--v2-paper:#f5f5f3}
body{font-family:'Archivo',Arial,Helvetica,sans-serif;font-size:16px;color:var(--v2-ink)}
.v2-wrap{width:100%;max-width:1280px;margin:0 auto;padding-left:32px;padding-right:32px;box-sizing:border-box}

/* Barra superior */
.v2-topbar{background:var(--v2-ink);color:#e4e4e6;font-size:13px}
.v2-topbar-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 24px;padding-top:9px;padding-bottom:9px}
.v2-trust{display:flex;flex-wrap:wrap;gap:6px 28px;list-style:none;margin:0;padding:0}
.v2-trust li{display:flex;align-items:center;gap:8px}
.v2-trust svg{color:var(--v2-red);flex:none}
.v2-topbar-wa{color:#fff;font-weight:600}
.v2-topbar-wa:hover{color:#ffb3b7}

/* Cabecera */
.v2-header{background:#fff;border-bottom:1px solid var(--v2-line);position:relative;z-index:20}
.v2-header-main{display:flex;align-items:center;gap:16px 36px;padding-top:16px;padding-bottom:16px}
.v2-header .logo{font-size:40px;flex:none}
.v2-menu-toggle{display:none;width:44px;height:44px;border:0;border-radius:8px;background:var(--v2-paper);color:var(--v2-ink);align-items:center;justify-content:center;flex:none;margin:0}
.v2-search{flex:1 1 auto;display:flex;align-items:center;height:52px;border:2px solid var(--v2-ink);border-radius:8px;overflow:hidden;background:#fff;min-width:0}
.v2-search svg{margin-left:14px;color:#707078;flex:none}
.v2-search input{flex:1;border:0;outline:0;height:100%;padding:0 12px;font-size:16px;min-width:0;border-radius:0;background:transparent}
.v2-search button{height:100%;border:0;background:var(--v2-red);color:#fff;font-weight:700;font-size:15px;padding:0 24px;cursor:pointer}
.v2-search button:hover{background:var(--v2-red-dark)}
.v2-search:focus-within{box-shadow:0 0 0 3px rgba(228,43,53,.25)}
.v2-header-actions{display:flex;align-items:center;gap:20px;flex:none}
.v2-icon-link{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;min-height:44px}
.v2-icon-link:hover{color:var(--v2-red-dark)}
.v2-cart{display:flex;align-items:center;gap:8px;background:var(--v2-ink);color:#fff!important;padding:11px 16px;border-radius:8px;font-size:14px;font-weight:700;min-height:44px;box-sizing:border-box}
.v2-cart:hover{background:#000}
/* site.css pinta todo .cart-link span como círculo rojo; la etiqueta "Carrito" no debe heredarlo. */
.v2-cart .v2-icon-label{background:none;color:inherit;border-radius:0;width:auto;height:auto;font-size:14px;line-height:1.2;text-align:left}
.v2-cart .v2-cart-count{background:var(--v2-red);color:#fff;border-radius:99px;min-width:22px;height:22px;width:auto;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:22px;padding:0 6px;box-sizing:border-box}

/* Menú de categorías */
.v2-nav{border-top:1px solid #f0f0f0}
.v2-nav-inner{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:50px;font-size:14px;font-weight:600}
.v2-nav a{padding:8px 0;color:var(--v2-ink)}
.v2-nav a:hover,.v2-nav a[aria-current]{color:var(--v2-red-dark)}
.v2-nav-spacer{flex:1}
.v2-nav .v2-nav-color{color:var(--v2-red-dark)}
.v2-nav .v2-nav-pro{background:var(--v2-red);color:#fff;padding:8px 14px;border-radius:6px}
.v2-nav .v2-nav-pro:hover,.v2-nav .v2-nav-pro[aria-current]{background:var(--v2-red-dark);color:#fff}
.v2-nav .v2-nav-extra{display:none}

/* Tarjetas de producto: textos legibles en celular */
.product-info .eyebrow{font-size:12px;letter-spacing:.06em;color:var(--v2-muted)}
.product-info h3{font-size:17px}
.product-info p,.product-presentation{font-size:14px}
.product-bottom strong{font-size:24px;font-weight:800;letter-spacing:-.02em}
.product-bottom small{font-size:12px;color:var(--v2-muted);font-weight:400}
.product-card{border-radius:12px}
.button{border-radius:8px;font-size:15px}
.product-card-action.button,.visual-product-card .product-card-action .button{font-size:14px;min-height:46px}
.visual-product-card .eyebrow{font-size:12px;line-height:1.5;margin-bottom:6px}
.visual-product-card .product-presentation{font-size:13px;line-height:1.5;margin:0 0 10px}
.visual-product-card .product-sale-type,.visual-product-card .grain-card-options{font-size:13px}
.visual-product-card .grain-card-help{font-size:12px}
.visual-product-card .product-status{font-size:12px;padding:4px 8px;margin-bottom:10px}
.visual-product-card .product-bottom strong{font-size:22px;line-height:1.3}
.visual-product-card .product-bottom small{display:block;font-size:12px}
.visual-product-card .price-consult{font-size:16px}
.visual-product-card .product-card-action.button,.visual-product-card .product-card-action .button{font-size:14px;min-height:46px;padding:10px 8px}
.visual-product-card .quote-add-link{font-size:13px}
.catalog-photo-note{font-size:11px}
.visual-product-card .kit-photo-badge{font-size:12px}
.visual-product-card .kit-part-size{font-size:12px}
@media (max-width:760px){.visual-product-card .product-bottom strong{font-size:19px}.visual-product-card .product-card-action.button,.visual-product-card .product-card-action .button{font-size:13px;padding:10px 4px}}

/* Pie */
.v2-footer{background:var(--v2-ink);color:#c8c8cd}
.v2-footer-grid{display:flex;flex-wrap:wrap;justify-content:space-between;gap:32px;padding-top:48px;padding-bottom:36px}
.v2-footer-brand p{color:#a9a9b0;font-size:15px;margin:16px 0 0}
.v2-footer .logo{font-size:44px;color:var(--v2-red)}
.v2-footer h3{color:#fff;font-size:15px;margin:0 0 14px;letter-spacing:0}
.v2-footer-grid>div>a,.v2-footer-grid>div>span{display:block;color:#c8c8cd;font-size:15px;margin-bottom:10px}
.v2-footer-grid>div>a:hover{color:#fff}
.v2-footer-cta{align-self:center;background:#fff;color:var(--v2-ink)!important;font-weight:700;font-size:16px;padding:16px 24px;border-radius:8px}
.v2-footer-cta:hover{background:#f0f0f0}
.v2-footer-bottom{border-top:1px solid #33343a;display:flex;justify-content:space-between;gap:16px;padding-top:18px;padding-bottom:18px;font-size:13px;color:#8e8e96}
.v2-footer-bottom a{color:#8e8e96}

/* Selector de cantidad y pasos de compra (ficha, carrito y checkout) */
.pv2-qty{display:flex;align-items:stretch;border:1px solid #c9c9cd;border-radius:8px;overflow:hidden;flex:none;background:var(--pv2-card,#fff)}
.pv2-qty-btn{width:44px;border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:var(--pv2-ink,var(--v2-ink))}
.pv2-qty-btn:hover{background:var(--pv2-paper,var(--v2-paper))}
.pv2-qty .quantity{width:52px;flex:0 0 52px;min-height:48px;border:0;border-radius:0;text-align:center;font-size:17px;font-weight:700;-moz-appearance:textfield;background:transparent;color:var(--pv2-ink,var(--v2-ink));padding:0;margin:0}
.pv2-qty .quantity::-webkit-outer-spin-button,.pv2-qty .quantity::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pv2-steps{list-style:none;display:flex;gap:8px;margin:16px 0 4px;padding:0;font-size:13px;font-weight:600;color:var(--pv2-ink,var(--v2-ink))}
.pv2-steps li{flex:1;display:flex;align-items:center;gap:8px;background:var(--pv2-paper,var(--v2-paper));border-radius:8px;padding:10px;line-height:1.3}
.pv2-steps span{flex:none;width:22px;height:22px;border-radius:50%;background:var(--v2-red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800}
@media (max-width:720px){.pv2-steps{flex-direction:column;gap:6px}}

/* WhatsApp flotante y barra móvil */
.v2-wa-float{position:fixed;right:24px;bottom:24px;width:60px;height:60px;border-radius:50%;background:#1f8f4e;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:50}
.v2-wa-float:hover{background:#18763f;color:#fff}
.v2-mobile-bar{display:none}

/* Menú en una sola línea hasta ~1180 px; más angosto, Igualación y EGAM Pro pasan juntos a una segunda línea. */
@media (max-width:1320px) and (min-width:801px){
  .v2-nav-inner{gap:4px 12px;font-size:13px}
  .v2-nav .v2-nav-pro{padding:7px 11px}
}
@media (max-width:1179px) and (min-width:801px){
  .v2-nav-spacer{flex-basis:100%;height:0}
  .v2-nav .v2-nav-color{margin-left:auto}
}
@media (max-width:980px){
  .v2-icon-label{display:none}
  .v2-cart{padding:10px 12px}
  .v2-header-main{gap:12px 20px}
}
@media (max-width:800px){
  body{padding-bottom:72px}
  .v2-wrap{padding-left:16px;padding-right:16px}
  .v2-trust li:not(:first-child){display:none}
  .v2-topbar-inner{justify-content:space-between}
  .v2-header-main{flex-wrap:wrap;padding-top:10px;padding-bottom:12px}
  .v2-menu-toggle{display:flex;order:0}
  .v2-header .logo{font-size:30px;order:1}
  .v2-header .logo span{font-size:6px;margin-top:5px}
  .v2-header-actions{order:2;margin-left:auto;gap:8px}
  .v2-icon-link{width:44px;justify-content:center}
  .v2-search{order:3;flex:1 1 100%;height:48px}
  .v2-search button{padding:0 16px}
  .v2-nav{display:none;border-top:1px solid var(--v2-line)}
  .v2-nav.open{display:block}
  .v2-nav-inner{flex-direction:column;align-items:stretch;gap:0;padding-top:6px;padding-bottom:12px;font-size:16px}
  .v2-nav a{padding:12px 0;border-bottom:1px solid #f0f0f0}
  .v2-nav-spacer{display:none}
  .v2-nav .v2-nav-pro{text-align:center;margin-top:10px;border:0;padding:12px 14px}
  .v2-nav .v2-nav-extra{display:block}
  .v2-wa-float{display:none}
  .v2-mobile-bar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:60;background:#fff;border-top:1px solid var(--v2-line);padding:10px 12px;box-shadow:0 -4px 14px rgba(0,0,0,.08)}
  .v2-mobile-bar a{flex:1;display:flex;align-items:center;justify-content:center;height:48px;border-radius:8px;font-weight:700;font-size:15px;color:#fff}
  .v2-mobile-wa{background:#1f8f4e}
  .v2-mobile-cart{background:var(--v2-ink)}
  .v2-footer-grid{flex-direction:column;gap:24px}
  .v2-footer-cta{align-self:stretch;text-align:center}
}

/* Productos de proveedor: entrega en 2 a 3 días hábiles (estado discreto, gris) */
.availability-supplier{--availability-color:#246a44}
:root[data-theme="dark"] .availability-supplier:not(.tag){--availability-color:#8cdbac}
