/* ================================================================
   ELECTROMAX — HOJA DE ESTILOS COMPARTIDA
   Usada por: index.html, productos.html, suscripciones.html, contacto.html
   Identidad visual estilo Walmart: azul corporativo + amarillo/naranja
   vibrante para CTA, fondos gris claro y tipografía limpia.
================================================================= */

/* ---------- 1. TOKENS DE DISEÑO -------------------------------- */
:root{
  --steel-900:#001f3f;   /* azul marino oscuro: topbar, footer, toast */
  --steel-800:#004c91;   /* AZUL CORPORATIVO WALMART: header, paneles */
  --steel-700:#0067b8;   /* azul interactivo: botones, enlaces, bordes activos */
  --steel-600:#1f8fe0;   /* azul claro: hover */
  --bg:#f2f2f2;          /* gris muy claro de fondo general */
  --surface:#ffffff;
  --surface-alt:#e9e9e9;
  --line:#d9d9d9;
  --text:#1a1a1a;
  --text-muted:#595959;
  --amber:#ffc220;       /* AMARILLO WALMART: ofertas, insignias, CTA principal */
  --amber-dark:#e6a800;
  --amber-light:#fff4d6;
  --orange:#ffb81c;
  --gold:#c8952a;
  --silver:#8a97a8;
  --bronze:#a3673a;
  --radius-sm:6px;
  --radius-md:12px;
  --radius-lg:20px;
  --shadow-sm:0 1px 3px rgba(16,24,38,.08);
  --shadow-md:0 8px 24px rgba(16,24,38,.12);
  --shadow-lg:0 20px 50px rgba(16,24,38,.22);
  --font-display:'Barlow Condensed', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{font-family:var(--font-body); background:var(--bg); color:var(--text); line-height:1.5; -webkit-font-smoothing:antialiased;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer; border:none; background:none;}
ul{list-style:none;}
input, textarea, select{font-family:inherit;}
:focus-visible{outline:3px solid var(--steel-700); outline-offset:2px;}
.container{width:100%; max-width:1280px; margin:0 auto; padding:0 24px;}
.eco-strip{height:6px; background:linear-gradient(90deg,#1a9850 0%,#66bd63 16%,#a6d96a 32%,#fee08b 48%,#fdae61 64%,#f46d43 80%,#d73027 100%);}
.mxn{font-size:.62em; font-weight:600; color:var(--text-muted); margin-left:2px;}

/* ---------- 2. TOPBAR (datos de contacto) ---------------------- */
.topbar{background:var(--steel-900); color:#c7d2e0; font-size:.78rem;}
.topbar .container{display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; gap:16px; flex-wrap:wrap;}
.topbar span{display:flex; align-items:center; gap:6px;}
.topbar a{color:#c7d2e0;}
.topbar a:hover{color:#fff;}
.topbar .whatsapp{color:#8fe0a1;}

/* ---------- 3. HEADER ------------------------------------------- */
.site-header{background:var(--steel-800); position:sticky; top:0; z-index:60; box-shadow:var(--shadow-md);}
.header-row{display:flex; align-items:center; gap:20px; padding:16px 24px;}
.logo{font-family:var(--font-display); font-weight:800; font-size:1.9rem; color:#fff; letter-spacing:.5px; display:flex; align-items:center; gap:8px; white-space:nowrap;}
.logo .bolt{color:var(--amber);}
.dept-toggle{display:flex; align-items:center; gap:8px; background:var(--steel-700); color:#fff; font-family:var(--font-display); font-weight:600; font-size:1.05rem; padding:12px 18px; border-radius:var(--radius-sm); white-space:nowrap; transition:background .15s ease;}
.dept-toggle:hover{background:var(--steel-600);}
.dept-toggle .bars{display:flex; flex-direction:column; gap:3px;}
.dept-toggle .bars span{width:16px; height:2px; background:#fff; display:block;}
.search-form{flex:1; display:flex; max-width:640px; background:#fff; border-radius:var(--radius-sm); overflow:hidden;}
.search-form input{flex:1; border:none; padding:12px 16px; font-size:.95rem; color:var(--text);}
.search-form input:focus{outline:none;}
.search-form button{background:var(--steel-700); color:#fff; padding:0 18px; font-weight:600; display:flex; align-items:center; justify-content:center;}
.search-form button:hover{background:var(--steel-600);}
.header-actions{display:flex; align-items:center; gap:6px;}
.icon-btn{position:relative; display:flex; flex-direction:column; align-items:center; gap:2px; color:#e7ecf3; padding:8px 12px; border-radius:var(--radius-sm); font-size:.72rem; font-weight:600; transition:background .15s ease;}
.icon-btn:hover{background:rgba(255,255,255,.08);}
.icon-btn svg{width:22px; height:22px;}
.badge-count{position:absolute; top:2px; right:4px; background:var(--amber); color:var(--steel-900); font-family:var(--font-mono); font-size:.65rem; font-weight:700; min-width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; padding:0 2px;}
.login-btn{display:flex; align-items:center; gap:8px; color:#fff; padding:10px 16px; border:1px solid rgba(255,255,255,.25); border-radius:var(--radius-sm); font-weight:600; font-size:.85rem; white-space:nowrap;}
.login-btn:hover{background:rgba(255,255,255,.08);}

/* Navegación principal entre páginas */
.main-nav{background:var(--steel-700); overflow-x:auto;}
.main-nav ul{display:flex; gap:4px; padding:0 24px;}
.main-nav a{display:block; padding:11px 14px; color:#dce6f2; font-size:.85rem; font-weight:600; white-space:nowrap; border-bottom:3px solid transparent;}
.main-nav a:hover, .main-nav a.active{color:#fff; border-bottom-color:var(--amber);}
.quick-cats{background:var(--steel-800); overflow-x:auto; border-top:1px solid rgba(255,255,255,.08);}
.quick-cats ul{display:flex; gap:4px; padding:0 24px;}
.quick-cats a{display:block; padding:9px 14px; color:#c7d7ea; font-size:.8rem; font-weight:600; white-space:nowrap;}
.quick-cats a:hover{color:#fff;}

/* ---------- 4. PANEL DE DEPARTAMENTOS --------------------------- */
.dept-panel{position:fixed; top:0; left:0; height:100%; width:320px; max-width:86vw; background:var(--surface); z-index:100; transform:translateX(-105%); transition:transform .28s ease; box-shadow:var(--shadow-lg); display:flex; flex-direction:column;}
.dept-panel.open{transform:translateX(0);}
.dept-panel-head{background:var(--steel-800); color:#fff; padding:20px; display:flex; justify-content:space-between; align-items:center;}
.dept-panel-head h2{font-family:var(--font-display); font-size:1.4rem; font-weight:700;}
.dept-panel-close{color:#fff; font-size:1.4rem; line-height:1;}
.dept-list{overflow-y:auto; padding:8px 0; flex:1;}
.dept-item a{width:100%; display:flex; align-items:center; gap:14px; padding:14px 20px; text-align:left; font-weight:600; color:var(--text); border-bottom:1px solid var(--line);}
.dept-item a:hover{background:var(--surface-alt); color:var(--steel-700);}
.dept-item .dept-icon{width:34px; height:34px; border-radius:8px; background:var(--surface-alt); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0;}
.dept-item a.active{background:var(--amber-light); color:var(--steel-800);}
.dept-item .dept-count{margin-left:auto; font-family:var(--font-mono); font-size:.75rem; color:var(--text-muted);}
.scrim{position:fixed; inset:0; background:rgba(10,14,22,.55); z-index:90; opacity:0; pointer-events:none; transition:opacity .25s ease;}
.scrim.show{opacity:1; pointer-events:auto;}

/* ---------- 5. BOTONES ------------------------------------------- */
.btn{font-family:var(--font-display); font-weight:700; font-size:1.05rem; padding:14px 26px; border-radius:var(--radius-sm); letter-spacing:.3px; transition:transform .15s ease, box-shadow .15s ease, background .15s ease; display:inline-flex; align-items:center; gap:8px;}
.btn-primary{background:var(--amber); color:var(--steel-900);}
.btn-primary:hover{background:var(--amber-dark); transform:translateY(-2px); box-shadow:var(--shadow-md);}
.btn-ghost{border:2px solid rgba(255,255,255,.4); color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.1);}
.btn-dark{background:var(--steel-800); color:#fff;}
.btn-dark:hover{background:var(--steel-900);}
.btn-outline{border:2px solid var(--steel-700); color:var(--steel-700); background:#fff;}
.btn-outline:hover{background:var(--steel-700); color:#fff;}
.btn-block{width:100%; justify-content:center;}
.btn:disabled{opacity:.5; cursor:not-allowed; transform:none !important;}

/* ---------- 6. HERO (solo index.html) ---------------------------- */
.hero{background:linear-gradient(115deg, var(--steel-900) 0%, var(--steel-800) 65%, var(--steel-700) 100%); color:#fff; position:relative; overflow:hidden;}
.hero .container{display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:40px; padding:64px 24px;}
.hero-eyebrow{display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:.78rem; letter-spacing:1.5px; text-transform:uppercase; color:var(--amber); background:rgba(255,194,32,.14); padding:6px 12px; border-radius:20px; margin-bottom:18px;}
.hero h1{font-family:var(--font-display); font-weight:800; font-size:clamp(2.4rem,5vw,4rem); line-height:1.02; letter-spacing:.5px;}
.hero h1 em{font-style:normal; color:var(--amber);}
.hero p{margin-top:18px; font-size:1.1rem; color:#cbd6e6; max-width:480px;}
.hero-cta{display:flex; gap:14px; margin-top:30px; flex-wrap:wrap;}
.energy-card{background:#fff; color:var(--text); border-radius:var(--radius-lg); padding:26px; box-shadow:var(--shadow-lg); position:relative;}
.energy-card .eco-strip{border-radius:6px; margin-bottom:16px;}
.energy-card h3{font-family:var(--font-display); font-size:1.6rem; font-weight:700;}
.energy-scale{display:flex; flex-direction:column; gap:6px; margin-top:14px;}
.energy-scale .row{display:flex; align-items:center; gap:10px;}
.energy-scale .letter{font-family:var(--font-display); font-weight:800; color:#fff; width:34px; height:26px; display:flex; align-items:center; justify-content:center; border-radius:4px; font-size:.95rem;}
.energy-scale .bar{height:14px; border-radius:4px;}
.energy-scale .row.current .letter{outline:3px solid var(--steel-900); outline-offset:2px;}
.energy-card .price-tag{margin-top:18px; display:flex; align-items:baseline; gap:10px; font-family:var(--font-mono);}
.energy-card .price-tag .now{font-size:1.8rem; font-weight:700; color:var(--steel-800);}
.energy-card .price-tag .was{font-size:1rem; color:var(--text-muted); text-decoration:line-through;}

/* Encabezado simple para páginas internas (productos, suscripciones, contacto) */
.page-header{background:linear-gradient(100deg, var(--steel-900), var(--steel-800)); color:#fff; padding:44px 0;}
.page-header h1{font-family:var(--font-display); font-size:2.6rem; font-weight:800;}
.page-header p{margin-top:8px; color:#cbd6e6; max-width:560px;}
.breadcrumb{font-size:.8rem; color:#9fb3ca; margin-bottom:10px;}
.breadcrumb a:hover{color:#fff;}

/* ---------- 7. SECCIONES GENERALES ------------------------------- */
.section{padding:60px 0;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:28px; gap:20px; flex-wrap:wrap;}
.section-head h2{font-family:var(--font-display); font-size:2.1rem; font-weight:800; color:var(--steel-900);}
.section-head p{color:var(--text-muted); margin-top:4px;}
.section-alt{background:var(--surface-alt);}

/* ---------- 8. PRODUCTOS ------------------------------------------ */
.product-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); gap:22px;}
.product-card{background:var(--surface); border-radius:var(--radius-md); overflow:hidden; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; position:relative; cursor:pointer;}
.product-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-md);}
.product-media{position:relative; aspect-ratio:4/3; background:var(--surface-alt); overflow:hidden;}
.product-media img{width:100%; height:100%; object-fit:cover; transition:transform .35s ease;}
.product-card:hover .product-media img{transform:scale(1.06);}
.tag-oferta{position:absolute; top:10px; left:10px; background:var(--amber); color:var(--steel-900); font-family:var(--font-mono); font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:4px; letter-spacing:.4px;}
.wishlist-heart{position:absolute; top:8px; right:8px; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-sm);}
.wishlist-heart svg{width:19px; height:19px; stroke:var(--steel-700); fill:none; stroke-width:2; transition:all .15s ease;}
.wishlist-heart.active svg{fill:var(--amber); stroke:var(--amber-dark);}
.product-body{padding:16px; display:flex; flex-direction:column; gap:8px; flex:1;}
.product-dept{font-size:.72rem; text-transform:uppercase; letter-spacing:.6px; color:var(--steel-700); font-weight:700;}
.product-title{font-weight:600; font-size:.98rem; color:var(--text); line-height:1.3;}
.product-rating{display:flex; align-items:center; gap:6px; font-size:.8rem; color:var(--text-muted);}
.product-rating .stars{color:var(--amber-dark); letter-spacing:1px;}
.product-prices{display:flex; align-items:baseline; gap:8px; margin-top:auto; font-family:var(--font-mono);}
.price-now{font-size:1.25rem; font-weight:700; color:var(--steel-900);}
.price-was{font-size:.85rem; color:var(--text-muted); text-decoration:line-through;}
.product-actions{display:flex; gap:8px; padding:0 16px 16px;}
.btn-add{flex:1; background:var(--steel-700); color:#fff; font-family:var(--font-body); font-weight:600; font-size:.86rem; padding:10px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; gap:6px; transition:background .15s ease;}
.btn-add:hover{background:var(--steel-600);}
.btn-add.added{background:var(--steel-900);}
.active-filter{display:none; align-items:center; gap:10px; margin-bottom:20px; background:var(--amber-light); color:var(--steel-800); padding:10px 16px; border-radius:var(--radius-sm); font-weight:600; width:fit-content;}
.active-filter.show{display:flex;}
.active-filter button{color:var(--steel-800); font-weight:800; font-size:1rem;}
.dept-teaser-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(180px,1fr)); gap:18px;}
.dept-teaser{display:block; background:var(--surface); border-radius:var(--radius-md); padding:24px 18px; text-align:center; box-shadow:var(--shadow-sm); transition:transform .15s ease, box-shadow .15s ease;}
.dept-teaser:hover{transform:translateY(-3px); box-shadow:var(--shadow-md);}
.dept-teaser .emoji{font-size:2.2rem; margin-bottom:10px;}
.dept-teaser .name{font-weight:700; color:var(--steel-800);}
.dept-teaser .count{font-size:.78rem; color:var(--text-muted); margin-top:2px;}

/* ---------- 9. MEMBRESÍAS ------------------------------------------ */
.plans-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.plan-card{background:var(--surface); border-radius:var(--radius-lg); padding:32px 26px; box-shadow:var(--shadow-sm); border:2px solid transparent; position:relative; display:flex; flex-direction:column;}
.plan-card.featured{border-color:var(--gold); box-shadow:var(--shadow-md); transform:scale(1.03);}
.plan-badge{position:absolute; top:-14px; left:50%; transform:translateX(-50%); background:var(--gold); color:#fff; font-family:var(--font-mono); font-size:.72rem; font-weight:700; padding:5px 14px; border-radius:20px;}
.plan-tier{width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; color:#fff; font-size:1.3rem; margin-bottom:16px;}
.plan-card[data-tier="bronce"] .plan-tier{background:var(--bronze);}
.plan-card[data-tier="plata"] .plan-tier{background:var(--silver);}
.plan-card[data-tier="oro"] .plan-tier{background:var(--gold);}
.plan-card h3{font-family:var(--font-display); font-size:1.7rem; font-weight:700;}
.plan-price{font-family:var(--font-mono); font-size:2rem; font-weight:700; margin:10px 0 4px;}
.plan-price span{font-size:.9rem; color:var(--text-muted); font-weight:500;}
.plan-features{margin:20px 0; display:flex; flex-direction:column; gap:12px; flex:1;}
.plan-features li{display:flex; gap:10px; font-size:.92rem; align-items:flex-start;}
.plan-features li .check{color:var(--steel-700); font-weight:800; flex-shrink:0;}
.plan-compare-note{text-align:center; color:var(--text-muted); font-size:.85rem; margin-top:30px;}

/* ---------- 10. CONTACTO ------------------------------------------- */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start;}
.contact-card{background:var(--surface); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-sm); margin-bottom:20px;}
.contact-card h3{font-family:var(--font-display); font-size:1.3rem; margin-bottom:14px; color:var(--steel-800); display:flex; align-items:center; gap:10px;}
.contact-method{display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line);}
.contact-method:last-child{border-bottom:none;}
.contact-method .icon{width:42px; height:42px; border-radius:50%; background:var(--amber-light); color:var(--steel-800); display:flex; align-items:center; justify-content:center; font-size:1.2rem; flex-shrink:0;}
.contact-method .label{font-size:.78rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.4px;}
.contact-method .value{font-weight:700; font-size:1.05rem; color:var(--text);}
.hours-table{width:100%; border-collapse:collapse; font-size:.92rem;}
.hours-table tr{border-bottom:1px solid var(--line);}
.hours-table td{padding:10px 4px;}
.hours-table td:first-child{font-weight:600; color:var(--text);}
.hours-table td:last-child{text-align:right; color:var(--text-muted);}
.contact-form .form-field{margin-bottom:16px; display:flex; flex-direction:column; gap:6px;}
.contact-form label{font-size:.82rem; font-weight:600; color:var(--text);}
.contact-form input, .contact-form select, .contact-form textarea{padding:11px 13px; border:1.5px solid var(--line); border-radius:var(--radius-sm); font-size:.92rem; color:var(--text); background:#fff; width:100%;}
.contact-form textarea{resize:vertical; min-height:110px;}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus{border-color:var(--steel-700); outline:none;}
.contact-success{display:none; align-items:center; gap:10px; background:#e6f4ea; color:#1e7d34; padding:14px 16px; border-radius:var(--radius-sm); font-weight:600; font-size:.9rem; margin-bottom:16px;}
.contact-success.show{display:flex;}

/* ---------- 11. DRAWER DE CARRITO ----------------------------------- */
.cart-drawer{position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw; background:var(--surface); z-index:100; box-shadow:var(--shadow-lg); transform:translateX(105%); transition:transform .28s ease; display:flex; flex-direction:column;}
.cart-drawer.open{transform:translateX(0);}
.drawer-head{padding:20px 22px; background:var(--steel-800); color:#fff; display:flex; justify-content:space-between; align-items:center;}
.drawer-head h2{font-family:var(--font-display); font-size:1.4rem; display:flex; align-items:center; gap:8px;}
.drawer-close{color:#fff; font-size:1.4rem;}
.cart-items{flex:1; overflow-y:auto; padding:12px 18px;}
.cart-item{display:grid; grid-template-columns:64px 1fr auto; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); align-items:center;}
.cart-item img{width:64px; height:64px; object-fit:cover; border-radius:8px; background:var(--surface-alt);}
.cart-item-title{font-size:.88rem; font-weight:600; line-height:1.3;}
.cart-item-price{font-family:var(--font-mono); font-size:.85rem; color:var(--steel-700); font-weight:700; margin-top:4px;}
.qty-control{display:flex; align-items:center; gap:8px; margin-top:8px;}
.qty-control button{width:24px; height:24px; border-radius:5px; background:var(--surface-alt); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--steel-700);}
.qty-control span{font-family:var(--font-mono); font-weight:600; min-width:16px; text-align:center;}
.cart-item-remove{color:var(--amber-dark); font-size:.78rem; font-weight:600; justify-self:end; align-self:start; text-decoration:underline;}
.cart-empty{padding:60px 20px; text-align:center; color:var(--text-muted);}
.cart-empty .emoji{font-size:2.4rem; margin-bottom:12px;}
.drawer-footer{padding:18px 22px 22px; border-top:1px solid var(--line); background:var(--surface-alt);}
.subtotal-row{display:flex; justify-content:space-between; font-family:var(--font-mono); font-weight:700; font-size:1.15rem; margin-bottom:14px;}
.drawer-footer .hint{font-size:.75rem; color:var(--text-muted); margin-top:10px; text-align:center;}

/* ---------- 12. MODALES --------------------------------------------- */
.modal-overlay{position:fixed; inset:0; background:rgba(10,14,22,.6); display:flex; align-items:center; justify-content:center; padding:20px; z-index:110; opacity:0; pointer-events:none; transition:opacity .2s ease;}
.modal-overlay.show{opacity:1; pointer-events:auto;}
.modal-box{background:#fff; border-radius:var(--radius-lg); width:100%; max-width:460px; max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); transform:translateY(16px); transition:transform .2s ease;}
.modal-overlay.show .modal-box{transform:translateY(0);}
.modal-box.wide{max-width:640px;}
.modal-head{display:flex; justify-content:space-between; align-items:center; padding:22px 24px; border-bottom:1px solid var(--line);}
.modal-head h2{font-family:var(--font-display); font-size:1.5rem; font-weight:700;}
.modal-close{font-size:1.4rem; color:var(--text-muted);}
.modal-body{padding:24px;}
.tabs{display:flex; gap:4px; background:var(--surface-alt); border-radius:var(--radius-sm); padding:4px; margin-bottom:22px;}
.tabs button{flex:1; padding:10px; border-radius:6px; font-weight:600; font-size:.9rem; color:var(--text-muted);}
.tabs button.active{background:#fff; color:var(--steel-700); box-shadow:var(--shadow-sm);}
.form-field{margin-bottom:16px; display:flex; flex-direction:column; gap:6px;}
.form-field label{font-size:.82rem; font-weight:600; color:var(--text);}
.form-field input, .form-field select{padding:11px 13px; border:1.5px solid var(--line); border-radius:var(--radius-sm); font-size:.92rem; color:var(--text); background:#fff;}
.form-field input:focus, .form-field select:focus{border-color:var(--steel-700); outline:none;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.form-note{font-size:.78rem; color:var(--text-muted); margin-top:14px; text-align:center;}
.form-note a{color:var(--steel-700); font-weight:600;}
.wishlist-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.wishlist-empty{padding:40px 10px; text-align:center; color:var(--text-muted);}

/* Vista detallada de producto */
.product-detail{display:grid; grid-template-columns:1fr 1fr; gap:32px;}
.pd-media{border-radius:var(--radius-md); overflow:hidden; background:var(--surface-alt); aspect-ratio:4/3; position:relative;}
.pd-media img{width:100%; height:100%; object-fit:cover; transition:transform .3s ease; cursor:zoom-in;}
.pd-media:hover img{transform:scale(1.15);}
.pd-dept{font-size:.78rem; text-transform:uppercase; letter-spacing:.6px; color:var(--steel-700); font-weight:700;}
.pd-title{font-family:var(--font-display); font-size:1.9rem; font-weight:700; margin-top:4px; line-height:1.1;}
.pd-rating{display:flex; align-items:center; gap:8px; margin-top:8px; font-size:.9rem; color:var(--text-muted);}
.pd-rating .stars{color:var(--amber-dark); letter-spacing:1px;}
.pd-prices{display:flex; align-items:baseline; gap:12px; margin:16px 0 6px; font-family:var(--font-mono);}
.pd-price-now{font-size:2rem; font-weight:700; color:var(--steel-800);}
.pd-price-was{font-size:1.1rem; color:var(--text-muted); text-decoration:line-through;}
.pd-availability{display:inline-flex; align-items:center; gap:6px; font-size:.82rem; font-weight:600; padding:5px 12px; border-radius:20px; margin-bottom:16px;}
.pd-availability.in-stock{background:#e6f4ea; color:#1e7d34;}
.pd-availability.low-stock{background:var(--amber-light); color:#a15c00;}
.pd-availability .dot{width:7px; height:7px; border-radius:50%; background:currentColor;}
.pd-description{font-size:.92rem; color:var(--text); line-height:1.6; margin-bottom:18px;}
.pd-specs{margin-bottom:22px;}
.pd-specs h4{font-family:var(--font-display); font-size:1.1rem; margin-bottom:10px; color:var(--steel-800);}
.pd-specs table{width:100%; border-collapse:collapse; font-size:.88rem;}
.pd-specs tr{border-bottom:1px solid var(--line);}
.pd-specs td{padding:9px 4px; vertical-align:top;}
.pd-specs td:first-child{color:var(--text-muted); font-weight:600; width:46%;}
.pd-qty-row{display:flex; align-items:center; gap:16px; margin-bottom:16px;}
.pd-qty-control{display:flex; align-items:center; gap:0; border:1.5px solid var(--line); border-radius:var(--radius-sm); overflow:hidden;}
.pd-qty-control button{width:38px; height:38px; background:var(--surface-alt); font-size:1.1rem; font-weight:700; color:var(--steel-700); display:flex; align-items:center; justify-content:center;}
.pd-qty-control span{font-family:var(--font-mono); font-weight:700; min-width:40px; text-align:center; font-size:1rem;}
.pd-actions{display:flex; gap:10px; flex-wrap:wrap;}
.pd-actions .btn-add{flex:2; padding:13px;}
.btn-wishlist-pd{flex:1; display:flex; align-items:center; justify-content:center; gap:8px; border:2px solid var(--steel-700); color:var(--steel-700); border-radius:var(--radius-sm); font-weight:600; font-size:.9rem; background:#fff;}
.btn-wishlist-pd.active{background:var(--amber-light); border-color:var(--amber); color:#a15c00;}
.btn-wishlist-pd svg{width:18px; height:18px;}

/* Checkout: métodos de pago */
.pay-methods{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px;}
.pay-method{border:2px solid var(--line); border-radius:var(--radius-sm); padding:14px; display:flex; align-items:center; gap:10px; cursor:pointer; position:relative;}
.pay-method input{position:absolute; opacity:0; inset:0; cursor:pointer;}
.pay-method.selected{border-color:var(--steel-700); background:var(--amber-light);}
.card-badge{display:flex; align-items:center; justify-content:center; width:44px; height:28px; border-radius:4px; font-weight:800; font-size:.68rem; letter-spacing:.5px;}
.card-badge.visa{background:#1a1f71; color:#fff; font-style:italic;}
.card-badge.mc{background:#f7f7f7; position:relative;}
.mc-circles{display:flex;}
.mc-circles span{width:15px; height:15px; border-radius:50%; margin-left:-5px;}
.mc-circles span:first-child{background:#eb001b; margin-left:0;}
.mc-circles span:last-child{background:#f79e1b; mix-blend-mode:multiply;}
.pay-method span.label{font-weight:600; font-size:.85rem;}
.checkout-summary{background:var(--surface-alt); border-radius:var(--radius-sm); padding:16px; margin-top:18px; font-family:var(--font-mono); font-size:.9rem;}
.checkout-summary .row{display:flex; justify-content:space-between; padding:4px 0;}
.checkout-summary .total{font-weight:700; font-size:1.1rem; border-top:1px solid var(--line); margin-top:8px; padding-top:10px;}

/* ---------- 13. TOAST ------------------------------------------------ */
.toast{position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(20px); background:var(--steel-900); color:#fff; padding:14px 22px; border-radius:var(--radius-sm); font-weight:600; font-size:.9rem; box-shadow:var(--shadow-lg); z-index:200; opacity:0; pointer-events:none; transition:all .25s ease; display:flex; align-items:center; gap:10px;}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}
.toast .dot{width:8px; height:8px; border-radius:50%; background:var(--amber);}

/* ---------- 14. FOOTER ------------------------------------------------ */
.site-footer{background:var(--steel-900); color:#a9b6c8; padding:56px 0 24px; margin-top:40px;}
.footer-grid{display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px;}
.footer-grid h4{color:#fff; font-family:var(--font-display); font-size:1.05rem; margin-bottom:14px;}
.footer-grid li{margin-bottom:8px; font-size:.86rem;}
.footer-grid li a:hover{color:#fff;}
.footer-contact-line{display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:.86rem;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1); padding-top:20px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.78rem;}

/* ---------- 15. RESPONSIVO --------------------------------------------- */
@media (max-width: 980px){
  .hero .container{grid-template-columns:1fr;}
  .plans-grid{grid-template-columns:1fr;}
  .plan-card.featured{transform:none;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .contact-grid{grid-template-columns:1fr;}
}
@media (max-width: 760px){
  .header-row{flex-wrap:wrap;}
  .search-form{order:3; max-width:100%; width:100%;}
  .login-btn span{display:none;}
  .main-nav, .quick-cats{display:none;}
  .wishlist-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .product-detail{grid-template-columns:1fr;}
}
@media (max-width: 480px){
  .icon-btn span.icon-label{display:none;}
  .dept-toggle span.dept-label{display:none;}
}
