/* ============================================================
   ACEROS GMA S.A.C. — VISTA DE PRODUCTO WOOCOMMERCE · 3R CORE
   Réplica exacta de PRODUCTO_ACEROS-GMA_v1.html
   Cargar solo en single-product.
   ============================================================ */
:root{
  --navy:#061836; --navy-700:#0a2444; --navy-600:#123464;
  --steel:#0c4f8a; --steel-300:#5f86b3;
  --accent:#1a7cc4; --accent-700:#145f97; --accent-2:#67aae2; --accent-050:#e9f3fb;
  --plata:#A8A8A8; --gris:#696969; --ink:#172033; --ink-soft:#4c586a;
  --bg:#f4f6f8; --bg-soft:#eef2f6; --line:#dfe5eb; --line-2:#e8edf2; --white:#fff;
  --wsp:#25D366;
  --shadow-sm:0 6px 18px rgba(6,24,54,.08); --shadow-md:0 14px 40px rgba(6,24,54,.14);
  --maxw:1240px;
}

/* Neutralizar estilos base de Woo/Blocksy en la PDP */
.single-product .gma-pdp-root *{box-sizing:border-box}
.single-product .gma-pdp-root{font-family:'Open Sans',Arial,Helvetica,sans-serif;color:var(--ink);line-height:1.6;-webkit-font-smoothing:antialiased}
.single-product .gma-pdp-root img{max-width:100%;display:block;height:auto}
.single-product .gma-pdp-root a{color:inherit;text-decoration:none}
.single-product .gma-pdp-root button{font-family:inherit;cursor:pointer}
.single-product .gma-pdp-root h1,
.single-product .gma-pdp-root h2,
.single-product .gma-pdp-root h3,
.single-product .gma-pdp-root h4{font-family:'Montserrat',sans-serif;color:var(--navy);line-height:1.14;letter-spacing:-.01em;margin:0}
.single-product .gma-pdp-root p{margin:0}
.single-product .gma-pdp-root ul{margin:0;padding:0}
.gma-pdp-root .wrap{max-width:var(--maxw);margin:0 auto;padding:0 26px}

/* Botones */
.gma-pdp-root .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:'Montserrat';font-weight:700;font-size:14px;letter-spacing:.02em;padding:14px 22px;border:2px solid transparent;border-radius:0;transition:.2s;white-space:nowrap;text-decoration:none;line-height:1}
.gma-pdp-root .btn svg{width:18px;height:18px}
.gma-pdp-root .btn-accent{background:var(--accent);color:#fff}.gma-pdp-root .btn-accent:hover{background:var(--accent-700);color:#fff}
.gma-pdp-root .btn-navy{background:var(--navy);color:#fff !important}.gma-pdp-root .btn-navy:hover{background:var(--navy-600);color:#fff}
.gma-pdp-root .btn-ghost{background:transparent;color:var(--navy);border-color:var(--line)}.gma-pdp-root .btn-ghost:hover{border-color:var(--navy)}

/* ---------- BREADCRUMB ---------- */
.gma-pdp-root .crumbbar{background:#fff;border-bottom:1px solid var(--line)}
.gma-pdp-root .crumbbar .wrap{display:flex;align-items:center;gap:9px;padding-top:14px;padding-bottom:14px;font-size:12.5px;color:var(--gris);font-family:'Montserrat';font-weight:600;flex-wrap:wrap}
.gma-pdp-root .crumbbar a:hover{color:var(--steel)}
.gma-pdp-root .crumbbar svg{width:13px;height:13px;color:var(--plata)}
.gma-pdp-root .crumbbar .cur{color:var(--navy)}

/* ---------- PDP ---------- */
.gma-pdp-root .pdp{padding:38px 0 60px;background:#fff}
.gma-pdp-root .pdp .grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}

/* Galería */
.gma-pdp-root .gallery{position:sticky;top:74px}
.gma-pdp-root .gmain{position:relative;aspect-ratio:1/1;background:linear-gradient(160deg,#f6f8fa,#e5ebf1);border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.gma-pdp-root .gmain::after{content:"";position:absolute;inset:0;opacity:.5;pointer-events:none;background-image:linear-gradient(rgba(120,150,190,.10) 1px,transparent 1px),linear-gradient(90deg,rgba(120,150,190,.10) 1px,transparent 1px);background-size:26px 26px}
.gma-pdp-root .gmain img{position:relative;z-index:2;width:88%;height:88%;object-fit:contain;mix-blend-mode:multiply}
.gma-pdp-root .gmain .art{width:46%;color:#8296ad;position:relative;z-index:2}
.gma-pdp-root .gmain .reftag{position:absolute;z-index:3;left:16px;bottom:16px;font-family:'Roboto Mono',monospace;font-size:10.5px;letter-spacing:.1em;color:#7f8ea6;border:1px dashed #b9c3d0;padding:6px 10px;text-transform:uppercase}
.gma-pdp-root .gmain .zoom{position:absolute;z-index:3;right:16px;top:16px;width:38px;height:38px;background:rgba(255,255,255,.9);border:1px solid var(--line);display:grid;place-items:center;color:var(--steel);cursor:pointer}
.gma-pdp-root .gmain .zoom svg{width:18px;height:18px}
.gma-pdp-root .thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:12px}
.gma-pdp-root .thumb{aspect-ratio:1/1;background:var(--bg-soft);border:1px solid var(--line);display:grid;place-items:center;cursor:pointer;transition:.15s;position:relative;overflow:hidden}
.gma-pdp-root .thumb img{width:82%;height:82%;object-fit:contain;mix-blend-mode:multiply}
.gma-pdp-root .thumb.on,.gma-pdp-root .thumb:hover{border-color:var(--accent)}

/* Info */
.gma-pdp-root .pi-top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.gma-pdp-root .pi-cat{font-family:'Montserrat';font-weight:700;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--steel)}
.gma-pdp-root .pi-brand{font-size:12.5px;color:var(--gris)}.gma-pdp-root .pi-brand b{color:var(--navy);font-family:'Montserrat'}
.gma-pdp-root h1.pi-name{font-size:clamp(26px,2.6vw,34px);font-weight:800;line-height:1.15}
.gma-pdp-root .pi-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:var(--gris)}
.gma-pdp-root .pi-meta .code{font-family:'Roboto Mono',monospace;color:var(--ink);background:var(--bg-soft);border:1px solid var(--line-2);padding:4px 10px}
.gma-pdp-root .pi-stock{display:inline-flex;align-items:center;gap:7px;color:#1a7a3c;font-family:'Montserrat';font-weight:600;font-size:12.5px}
.gma-pdp-root .pi-stock .dot{width:8px;height:8px;border-radius:50%;background:#25a95a;box-shadow:0 0 0 3px rgba(37,169,90,.18)}
.gma-pdp-root .pi-stock--out{color:#a06a12}
.gma-pdp-root .pi-stock--out .dot{background:#e0a63a;box-shadow:0 0 0 3px rgba(224,166,58,.18)}
.gma-pdp-root .pi-desc{color:var(--ink-soft);font-size:15px;margin-top:16px;max-width:520px}
.gma-pdp-root .pi-desc p{margin:0 0 8px}

/* Specs destacadas */
.gma-pdp-root .pi-specs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}
.gma-pdp-root .pi-spec{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:13px 15px;background:#fff}
.gma-pdp-root .pi-spec .ic{width:38px;height:38px;flex:0 0 auto;background:var(--bg-soft);color:var(--steel);display:grid;place-items:center}
.gma-pdp-root .pi-spec .ic svg{width:20px;height:20px}
.gma-pdp-root .pi-spec small{display:block;font-size:11px;color:var(--gris);text-transform:uppercase;letter-spacing:.06em}
.gma-pdp-root .pi-spec b{font-family:'Roboto Mono',monospace;font-size:14px;color:var(--navy);font-weight:600}

/* Cotización */
.gma-pdp-root .pi-quote{border:1px solid var(--line);background:var(--bg);padding:20px 22px;margin-top:6px}
.gma-pdp-root .pi-quote .row1{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.gma-pdp-root .pi-quote .price{font-family:'Montserrat';font-weight:800;font-size:22px;color:var(--navy)}
.gma-pdp-root .pi-quote .tagq{font-family:'Roboto Mono',monospace;font-size:11px;color:var(--gris);border:1px solid var(--line);padding:3px 8px}
.gma-pdp-root .pi-quote p{font-size:13px;color:var(--gris);margin-top:6px}
.gma-pdp-root .pi-buy{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}
.gma-pdp-root .qty{display:inline-flex;align-items:center;border:1px solid var(--line);background:#fff}
.gma-pdp-root .qty button{width:44px;height:52px;background:#fff;border:0;font-size:20px;color:var(--navy);display:grid;place-items:center}
.gma-pdp-root .qty button:hover{background:var(--bg-soft)}
.gma-pdp-root .qty input{width:52px;height:52px;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:0;text-align:center;font-family:'Roboto Mono',monospace;font-size:15px;color:var(--navy);outline:0;background:#fff}
.gma-pdp-root .pi-buy .btn{flex:1;min-width:220px;height:52px}
.gma-pdp-root .pi-alt{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.gma-pdp-root .pi-alt .btn{flex:1;min-width:180px}
.gma-pdp-root .pi-trust{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.gma-pdp-root .pi-trust span{display:inline-flex;align-items:center;gap:8px;font-family:'Montserrat';font-weight:600;font-size:12px;color:var(--ink-soft);background:var(--bg-soft);border:1px solid var(--line-2);padding:8px 12px}
.gma-pdp-root .pi-trust svg{width:15px;height:15px;color:var(--steel)}
.gma-pdp-root .pi-help{display:flex;gap:12px;align-items:flex-start;margin-top:20px;padding:16px;background:var(--accent-050);border-left:3px solid var(--accent)}
.gma-pdp-root .pi-help svg{width:20px;height:20px;color:var(--steel);flex:0 0 auto;margin-top:1px}
.gma-pdp-root .pi-help p{font-size:13.5px;color:var(--ink-soft)}.gma-pdp-root .pi-help b{color:var(--navy)}

/* ---------- TABS / DETALLES ---------- */
.gma-pdp-root .details{background:var(--bg);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.gma-pdp-root .details .wrap{padding:52px 26px}
.gma-pdp-root .tabbar{display:flex;gap:4px;border-bottom:2px solid var(--line);margin-bottom:28px;flex-wrap:wrap}
.gma-pdp-root .tabbar button{background:transparent;border:0;padding:14px 22px;font-family:'Montserrat';font-weight:700;font-size:14px;color:var(--gris);position:relative;letter-spacing:.02em}
.gma-pdp-root .tabbar button::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;background:var(--accent);transform:scaleX(0);transition:.2s}
.gma-pdp-root .tabbar button.on{color:var(--navy)}.gma-pdp-root .tabbar button.on::after{transform:scaleX(1)}
.gma-pdp-root .panel{display:none}.gma-pdp-root .panel.on{display:block;animation:gmaFade .3s ease}
@keyframes gmaFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.gma-pdp-root .spectable{width:100%;max-width:760px;border-collapse:collapse;background:#fff;border:1px solid var(--line);margin:0}
.gma-pdp-root .spectable tr{border-bottom:1px solid var(--line-2)}.gma-pdp-root .spectable tr:last-child{border-bottom:0}
.gma-pdp-root .spectable th{text-align:left;width:38%;padding:14px 20px;background:var(--bg-soft);font-family:'Montserrat';font-weight:600;font-size:13.5px;color:var(--navy);vertical-align:top;border:0}
.gma-pdp-root .spectable td{padding:14px 20px;font-family:'Roboto Mono',monospace;font-size:13.5px;color:var(--ink-soft);border:0}
.gma-pdp-root .panel h3{font-size:20px;margin-bottom:12px}
.gma-pdp-root .panel p{color:var(--ink-soft);font-size:15px;max-width:820px;margin-bottom:14px}
.gma-pdp-root .applist{list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:760px}
.gma-pdp-root .applist li{display:flex;align-items:center;gap:11px;font-size:14.5px;color:var(--ink)}
.gma-pdp-root .applist svg{width:18px;height:18px;color:var(--steel);flex:0 0 auto}
.gma-pdp-root .pdfbox{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);padding:18px 20px;max-width:520px;margin-top:8px}
.gma-pdp-root .pdfbox .ic{width:46px;height:46px;background:var(--navy);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.gma-pdp-root .pdfbox .ic svg{width:24px;height:24px}
.gma-pdp-root .pdfbox b{font-family:'Montserrat';color:var(--navy);font-size:14.5px}
.gma-pdp-root .pdfbox small{display:block;color:var(--gris);font-size:12px}
.gma-pdp-root .pdfbox .btn{margin-left:auto}

/* ---------- RELACIONADOS ---------- */
.gma-pdp-root .related{padding:64px 0 60px;background:#fff}
.gma-pdp-root .related h2{font-size:26px;font-weight:800;margin-bottom:6px}
.gma-pdp-root .related .sub{color:var(--ink-soft);margin-bottom:30px}
.gma-pdp-root .rel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.gma-pdp-root .prod-card{background:#fff;border:1px solid var(--line);display:flex;flex-direction:column;transition:.2s}
.gma-pdp-root .prod-card:hover{box-shadow:var(--shadow-md);border-color:var(--accent);transform:translateY(-3px)}
.gma-pdp-root .pc-media{position:relative;aspect-ratio:4/3;background:linear-gradient(160deg,#f6f8fa,#e7edf3);display:grid;place-items:center;overflow:hidden}
.gma-pdp-root .pc-media img{width:74%;height:74%;object-fit:contain;mix-blend-mode:multiply}
.gma-pdp-root .pc-media .art{width:42%;color:#8296ad}
.gma-pdp-root .pc-tag{position:absolute;top:12px;left:12px;font-family:'Montserrat';font-weight:700;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--steel);background:rgba(255,255,255,.92);padding:5px 9px}
.gma-pdp-root .pc-body{padding:15px 17px 4px;flex:1}
.gma-pdp-root .pc-body h3{font-size:15px;font-weight:700;color:var(--ink);line-height:1.3}
.gma-pdp-root .pc-body .sp{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.gma-pdp-root .pc-body .sp span{font-family:'Roboto Mono',monospace;font-size:11px;color:var(--ink-soft);background:var(--bg-soft);padding:3px 8px;border:1px solid var(--line-2)}
.gma-pdp-root .pc-foot{padding:12px 17px 17px}
.gma-pdp-root .pc-foot .btn{width:100%}

/* ---------- LIGHTBOX ZOOM ---------- */
.gma-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(6,24,54,.92);display:none;place-items:center;padding:30px;cursor:zoom-out}
.gma-lightbox.open{display:grid}
.gma-lightbox img{max-width:92vw;max-height:92vh;object-fit:contain}

/* ---------- RESPONSIVE ---------- */
@media(max-width:960px){
 .gma-pdp-root .pdp .grid{grid-template-columns:1fr;gap:30px}
 .gma-pdp-root .gallery{position:static}
 .gma-pdp-root .rel-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
 .gma-pdp-root .pi-specs{grid-template-columns:1fr}
 .gma-pdp-root .applist{grid-template-columns:1fr}
 .gma-pdp-root .rel-grid{grid-template-columns:1fr}
}
