/* 
Theme Name: WER Empresas
Description: Tema corporativo para WER.mx
Version: 0.9.9
Text Domain: wer-empresas
*/
:root{--ink:#112642;--teal:#006b64;--soft:#ecf6f4;--line:#dce7e8;--muted:#43536a;--paper:#fff}*{box-sizing:border-box}html{scroll-padding-top:1rem}body{margin:0;background:var(--paper);color:var(--ink);font-family:system-ui,sans-serif;line-height:1.6}a{color:var(--teal)}:focus-visible{outline:3px solid #007c75;outline-offset:4px}.wrap{width:min(1200px,92%);margin-inline:auto}.bar,.foot .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem}.top{border-bottom:1px solid var(--line);padding-block:1rem;background:#fff}.brand img{width:105px;display:block}.bar nav{display:flex;flex-wrap:wrap;gap:.4rem 1rem;font-size:.88rem}.bar nav a,.foot a{text-decoration:none;color:inherit}.hero{background:var(--soft);padding:clamp(3rem,7vw,7rem) 0}.hero-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(1rem,5vw,5rem)}.hero figure{margin:0}.hero img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:1rem;display:block}.label{color:var(--teal);letter-spacing:.11em;font-weight:750;font-size:.76rem}.hero h1{font-size:clamp(2.5rem,5.5vw,5rem);line-height:1.02;letter-spacing:-.06em;margin:.6rem 0 1rem}.intro{max-width:59ch;color:var(--muted);font-size:1.09rem}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.6rem}.btn{display:inline-block;background:var(--teal);color:white;text-decoration:none;padding:.68rem 1.15rem;border-radius:.45rem;font-weight:700}.secondary{font-weight:700}.section{padding-block:clamp(1.8rem,4vw,3.45rem);border-bottom:1px solid var(--line)}.section h2{font-size:clamp(1.75rem,4vw,2.8rem);line-height:1.1;letter-spacing:-.04em;margin:0 0 1.2rem}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.grid article{border:1px solid var(--line);border-radius:.8rem;padding:1.25rem;background:#fff}.grid h3{margin:0 0 .55rem;line-height:1.2}.grid p{margin:0;color:var(--muted)}.grid .mode{margin-top:.7rem;color:var(--teal);font-size:.88rem;font-weight:650}.foot{background:var(--ink);color:white;padding:2rem 0;margin-top:2rem}.foot .wrap{flex-wrap:wrap}.notice{color:var(--muted);font-size:.93rem}@media(max-width:880px){.bar{flex-wrap:wrap}.bar nav{order:3;width:100%}.grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.hero-grid,.grid{grid-template-columns:1fr}.hero img{aspect-ratio:16/10}}

.wer-chat{position:fixed;right:1rem;bottom:1rem;z-index:10;width:min(22rem,calc(100% - 2rem));border:1px solid var(--line);border-radius:.6rem;background:white;box-shadow:0 8px 35px #11264225}.wer-chat:not([open]){width:auto}.wer-chat summary{cursor:pointer;background:var(--teal);color:white;padding:.65rem 1rem;border-radius:.5rem}.wer-chat>div{padding:1rem}.wer-chat input{display:block;width:100%;padding:.55rem;margin:.4rem 0}.wer-chat button{border:0;cursor:pointer}

.routes{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;border:1px solid var(--line);border-radius:1rem;overflow:hidden;background:var(--line);margin-top:1.4rem}.routes a{display:block;padding:1.2rem 1.4rem;background:#fff;text-decoration:none}.routes a:hover{background:var(--soft)}.routes strong,.routes span{display:block}.routes strong{color:var(--ink);font-size:1.1rem}.routes span{font-size:.88rem}.hero-grid figure{position:relative}.hero-grid figcaption{font-size:.76rem;color:var(--muted);margin-top:.45rem}.grid article:hover{border-color:#78aaa5}.skip{position:absolute;left:.75rem;top:.5rem;transform:translateY(-160%);z-index:30;background:white;padding:.4rem .7rem}.skip:focus{transform:none}.service-link{display:inline-block;margin-top:.55rem;font-size:.9rem;font-weight:650}@media(max-width:680px){.routes{grid-template-columns:1fr}}

.wer-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border-radius:1rem;overflow:hidden;background:#315675;color:#fff;margin:1.25rem 0}.wer-flow article{padding:1.25rem;background:var(--ink)}.wer-flow strong,.wer-flow span{display:block}.wer-flow span{color:#d0e5ea;font-size:.92rem;margin-top:.25rem}.wer-banner{margin:1.25rem 0 0}.wer-banner img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;border-radius:1rem}.wer-banner figcaption{color:var(--muted);font-size:.8rem;margin-top:.35rem}.wer-contact{background:var(--soft);border-radius:1rem;padding-inline:clamp(1rem,4vw,2.5rem);margin-top:1.5rem}@media(max-width:720px){.wer-flow{grid-template-columns:repeat(2,1fr)}}@media(max-width:380px){.wer-flow{grid-template-columns:1fr}}

.wer-catalog-photo{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:.5rem;margin:0 0 .85rem}.section>.wer-catalog-photo{max-width:650px}

.wer-sector-nav{display:flex;flex-wrap:wrap;gap:.55rem;margin:0 0 1.35rem}.wer-sector-nav a{background:var(--soft);border:1px solid var(--line);border-radius:100px;padding:.35rem .8rem;text-decoration:none;font-weight:650;font-size:.9rem}#industrias article{scroll-margin-top:1.4rem}#industrias article:target{outline:3px solid var(--teal);outline-offset:3px}#industrias .wer-catalog-photo{aspect-ratio:3/2}

.wer-section-intro{max-width:72ch;font-size:1.04rem;color:var(--muted);margin:-.25rem 0 1.25rem}.grid .wer-example{font-size:.88rem;margin-top:.8rem;padding-top:.75rem;border-top:1px solid var(--line)}.wer-example strong{display:block;color:var(--teal)}

:root{--wer-night:#071427;--wer-highlight:#6af1dd}.top{background:#f9fcfd}.hero.wer-cinematic{position:relative;isolation:isolate;overflow:hidden;background:var(--wer-night);color:#f1f9ff;padding:0;min-height:clamp(510px,65vw,690px);display:grid;align-items:center}.wer-cinematic>.wer-hero-art{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;object-position:68% center;z-index:-3;aspect-ratio:auto}.wer-cinematic::before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#071427 0%,#071427f5 25%,#071427cf 43%,#07142748 70%,#0714271c 100%),linear-gradient(0deg,#071427 0%,transparent 28%)}.wer-cinematic::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 34px,#7ee7f613 35px 36px),repeating-linear-gradient(90deg,transparent 0 34px,#7ee7f613 35px 36px);mask-image:linear-gradient(90deg,transparent 45%,#0006 70%,#000)}.wer-hero-content{padding-block:clamp(3.9rem,9vw,8rem)}.wer-hero-copy{max-width:660px}.wer-cinematic h1{font-size:clamp(2.6rem,6vw,5.45rem);line-height:.98;max-width:12ch;color:#f7fcff;text-wrap:balance}.wer-cinematic .label{color:var(--wer-highlight);display:flex;align-items:center;gap:.7rem}.wer-cinematic .label::before{content:"";width:1.55rem;height:2px;background:var(--wer-highlight);box-shadow:0 0 .8rem #64e8e499}.wer-cinematic .intro{color:#d2e3ed;max-width:51ch}.wer-cinematic .btn{color:var(--wer-night);background:var(--wer-highlight)}.wer-cinematic .secondary{color:#effbff}.wer-flow-scan{position:absolute;inset:0 0 0 56%;pointer-events:none;overflow:hidden;z-index:-1}.wer-flow-scan::before{content:"";position:absolute;top:9%;bottom:9%;width:30%;left:-35%;background:linear-gradient(90deg,transparent,#71f0ee25,transparent);animation:wer-sweep 2.3s ease-out 1 both}.wer-flow-scan::after{content:"";position:absolute;right:8%;bottom:13%;height:1px;width:48%;background:linear-gradient(90deg,transparent,#8ffbeb);box-shadow:0 0 .85rem #44ffff91;animation:wer-trace 1.3s ease-out both;transform-origin:right}.wer-tech{background:linear-gradient(135deg,#071427,#102b42);color:#f2f9ff;padding:clamp(2.5rem,5vw,4rem) 0;margin:2rem 0}.wer-tech h2{font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.035em;margin:0}.wer-tech p{color:#d2e3ed;max-width:64ch;margin:.35rem 0 1.2rem}.wer-tech-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.wer-tech-tile{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:210px;border:1px solid #51778b;border-radius:.9rem;overflow:hidden;color:#fff;text-decoration:none;background:#0a2133}.wer-tech-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .3s ease}.wer-tech-tile::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#071427 0%,#071427c9 24%,#07142708 88%)}.wer-tech-tile strong{padding:1.1rem;font-size:1.12rem}.wer-tech-tile:hover img,.wer-tech-tile:focus-visible img{transform:scale(1.05)}.wer-tech-tile:focus-visible,.wer-cinematic a:focus-visible{outline-color:var(--wer-highlight)}.wer-team-photo{max-width:850px;margin:0 0 1.15rem}.wer-team-photo img{width:100%;max-height:350px;object-fit:cover;border-radius:.8rem}.wer-team-photo figcaption{font-size:.8rem;color:var(--muted)}@keyframes wer-sweep{to{left:110%}}@keyframes wer-trace{from{transform:scaleX(0);opacity:0}to{transform:scaleX(1);opacity:.85}}@media(max-width:720px){.wer-cinematic::before{background:linear-gradient(90deg,#071427f5,#07142782),linear-gradient(0deg,#071427 0%,transparent 70%)}.wer-cinematic>.wer-hero-art{object-position:69% center}.wer-tech-grid{grid-template-columns:1fr}.wer-tech-tile{min-height:175px}}@media(prefers-reduced-motion:reduce){.wer-flow-scan::before,.wer-flow-scan::after{animation:none}.wer-tech-tile img{transition:none}.wer-tech-tile:hover img,.wer-tech-tile:focus-visible img{transform:none}}

.wer-shop-details{margin-top:1.6rem}.wer-shop-spec{padding:1.1rem;background:var(--soft);border-radius:.7rem}.wer-shop-spec dl{display:grid;grid-template-columns:max-content 1fr;gap:.35rem .8rem;margin:.5rem 0 0}.wer-shop-spec dt{font-weight:700}.wer-shop-spec dd{margin:0}.wer-shop-details li+li{margin-top:.25rem}

.wer-ai-result{display:block;margin-top:.6rem}.wer-answer{white-space:pre-wrap;max-height:40vh;overflow-y:auto}

.wer-inner-nav{display:inline-block;margin:.6rem .65rem .6rem 0}.wp-block-post-content .wer-catalog-photo{max-height:490px}.wer-directory{list-style:none;padding:0}.wer-directory li{padding:.65rem .1rem;border-bottom:1px solid var(--line)}

.wer-page-directory{margin-block:1.5rem}.wer-page-directory h2{font-size:1.07rem;line-height:1.25}.wer-page-directory figure{margin:0}.wer-page-directory figcaption{display:none}

/* WER commerce only */
.wer-commerce{padding:clamp(1rem,3vw,2.5rem) max(4%,1rem);min-height:45vh}.wer-commerce .wer045-grid article{border:1px solid var(--line);border-radius:.8rem;padding:1rem}.wer-commerce .wer045-grid img{width:100%;height:180px;object-fit:contain}.wer-commerce .wer045 button,.wer-commerce .button{background:var(--teal);color:white;border-radius:.45rem;padding:.65rem 1rem;border:0}.wer-commerce input,.wer-commerce select{max-width:100%;font:inherit}.wer-commerce .wer045 form{background:var(--soft);padding:1rem;border-radius:.8rem}.wer-commerce .wer045-grid a{text-decoration:none}.wer-commerce .wer045-grid h3{font-size:1rem}.wer-commerce .woocommerce-product-gallery img{max-width:100%;height:auto}

.wer-product-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1rem,4vw,3rem);align-items:start}.wer-product-layout img,.wer-product-related img{max-width:100%;height:auto}.wer-product-layout h1{font-size:clamp(1.6rem,3vw,2.6rem);line-height:1.2}.wer-product-layout .wp-block-woocommerce-product-price{font-size:1.6rem;color:var(--teal);font-weight:700}.wer-product-related ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;list-style:none;padding:0}.wer-product-related li{border:1px solid var(--line);padding:1rem;border-radius:.8rem}.wer-product-related img{width:100%;aspect-ratio:1;object-fit:contain}.wer-product-related a{display:block}.wer-product-description{margin-block:2rem}@media(max-width:700px){.wer-product-layout{grid-template-columns:1fr}}

/* 0.9.4: related cards use normal flow, including long names and sale prices. */
.wer-product-related ul{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-items:stretch}
.wer-product-related li{display:flex;flex-direction:column;gap:.75rem;min-width:0;overflow-wrap:anywhere}
.wer-product-related li>a{display:flex;flex-direction:column;gap:.5rem;min-width:0;flex:1;text-decoration:none}
.wer-product-related li>a>strong{display:block;line-height:1.35;margin:0;white-space:normal}
.wer-product-related li .wer-related-price{display:block;position:static;float:none;clear:both;margin:0;padding-top:.25rem;line-height:1.4;color:var(--teal);font-weight:700;white-space:normal}
.wer-product-related li .wer-related-price .amount{position:static;float:none;white-space:normal}
.wer094-placeholder img{display:block;width:100%;height:auto;object-fit:contain}

/* 0.9.5: native WooCommerce purchase form, scoped to product detail. */
.wer-purchase-form{margin-block:1.25rem;min-width:0}.wer-purchase-form form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem}.wer-purchase-form .quantity input{width:5rem;padding:.55rem;border:1px solid var(--line);border-radius:.4rem}.wer-purchase-form .single_add_to_cart_button{background:var(--teal);color:white;border:0;border-radius:.45rem;padding:.7rem 1.1rem;font-weight:700}.wer-purchase-form .variations,.wer-purchase-form .single_variation_wrap,.wer-purchase-form .group_table{width:100%}.wer-purchase-form .woocommerce-variation-add-to-cart{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}

/* 0.9.7: visible quantity control, only in the individual purchase form. */
.wer-purchase-form form.cart{align-items:flex-end;gap:1rem}
.wer-purchase-form .wer-purchase-quantity{display:flex;flex-direction:column;gap:.25rem;flex:0 0 auto;min-width:6rem}
.wer-purchase-form .wer-quantity-caption{font-size:.85rem;font-weight:700;color:var(--ink)}
.wer-purchase-form .quantity{display:block;float:none;margin:0}
.wer-purchase-form .quantity input.qty:not([type=hidden]){display:block;visibility:visible;opacity:1;width:6rem;min-height:46px;background:#fff;color:var(--ink);border:1px solid #789396;border-radius:.45rem;font-size:1rem;text-align:center;padding:.55rem;appearance:auto}
.wer-purchase-form .single_add_to_cart_button{min-height:46px;margin:0;float:none;cursor:pointer}
@media(max-width:480px){.wer-purchase-form form.cart{gap:.65rem}.wer-purchase-form .single_add_to_cart_button{flex:1 1 10rem}}
