/*
Theme Name: CBELEC Premium
Theme URI: https://cbelec.cl/
Author: CBELEC
Description: Tema corporativo responsive para CBELEC SPA, basado en el diseño HTML proporcionado.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cbelec-premium
License: GPL-2.0-or-later
*/

:root{--navy:#071b35;--deep:#031124;--blue:#12375b;--yellow:#ffbc21;--muted:#607086;--line:#e4eaf0}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:'DM Sans',sans-serif;color:var(--navy);background:#fff}h1,h2,h3,h4{font-family:Outfit,sans-serif;margin:0}a{text-decoration:none;color:inherit}button,input{font:inherit}.wrap{width:min(1240px,calc(100% - 48px));margin:auto}.top{background:var(--deep);color:#c7d3e0;font-size:12px}.top .wrap{display:flex;justify-content:space-between;padding:10px 0;gap:12px}.top a{color:white}.nav{background:white;position:sticky;top:0;z-index:20;box-shadow:0 4px 24px #051a3212}.navinner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.logo{font:900 33px Outfit;letter-spacing:-1.8px;white-space:nowrap}.logo b{color:var(--yellow)}.logo:before{content:'ϟ';color:var(--yellow);font-size:44px;margin-right:7px}.logo small{display:block;font:700 9px 'DM Sans';letter-spacing:3px;margin-left:43px;margin-top:-6px}.links{display:flex;gap:29px;align-items:center;font-size:12px;font-weight:800;letter-spacing:.5px}.links a:hover{color:#d99000}.btn{display:inline-flex;gap:12px;align-items:center;justify-content:center;border:0;border-radius:5px;background:var(--yellow);color:#071b35;padding:16px 24px;font-weight:800;font-size:13px;cursor:pointer;transition:.2s}.btn:hover{background:#ffd05c;transform:translateY(-2px)}.btn.outline{background:transparent;border:1px solid #fff8;color:white}.menu{display:none;background:none;border:0;font-size:27px}.hero{position:relative;min-height:575px;color:white;background:linear-gradient(90deg,#031326 0%,#031326e8 37%,#03132663 100%),url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1800&q=85') center/cover}.hero .wrap{padding-top:112px;padding-bottom:115px}.eyebrow{color:var(--yellow);font-weight:800;letter-spacing:2.5px;font-size:12px;text-transform:uppercase}.hero h1{font-size:clamp(42px,5.2vw,75px);max-width:850px;line-height:1.03;margin:20px 0;letter-spacing:-2.5px}.hero h1 span{color:var(--yellow)}.hero p{max-width:570px;color:#d5e0eb;line-height:1.7;font-size:17px;margin:0 0 30px}.actions{display:flex;gap:12px;flex-wrap:wrap}.features{background:#0a2544;color:white}.features .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:24px 0}.feature{display:flex;align-items:center;gap:13px;font-size:13px}.feature strong{display:block}.feature span{color:#9db4cc;font-size:11px}.feature .sym{font-size:29px;color:var(--yellow)}section{padding:85px 0}.sectiontop{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:32px}.sectiontop h2,.intro h2,.contact h2{font-size:clamp(30px,3.5vw,47px);letter-spacing:-1.3px;line-height:1.1;margin-top:12px}.sectiontop p{max-width:440px;color:var(--muted);line-height:1.7;margin:0}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service{border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff;transition:.2s}.service:hover{transform:translateY(-5px);box-shadow:0 16px 36px #08203b16}.service img{width:100%;height:205px;object-fit:cover;display:block}.service .content{padding:24px}.service h3{font-size:21px;margin-bottom:9px}.service p{font-size:14px;color:var(--muted);line-height:1.65;min-height:68px}.service a{font-weight:800;font-size:13px;color:#a16b00}.dark{background:#061a31;color:white}.intro{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:65px}.intro p{line-height:1.85;color:#b7c8d9}.intro img{width:100%;height:450px;object-fit:cover;border-radius:8px}.stats{display:flex;gap:34px;margin:30px 0}.stats strong{font:800 27px Outfit;color:var(--yellow);display:block}.stats span{font-size:12px;color:#c3d2e1}.products{background:#f4f7fa}.productgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.product{background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden}.product img{width:100%;height:175px;object-fit:cover}.product div{padding:19px}.product h3{font-size:18px}.product p{color:var(--muted);font-size:13px;line-height:1.5}.contact{background:linear-gradient(110deg,#092849,#041429);color:white}.contact .wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}.contact p{color:#b9cadc;line-height:1.7;max-width:650px}.footer{background:#020d1b;color:#b3c3d2;padding:45px 0 25px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.footer .logo{color:white}.footer p,.footer a{font-size:13px;line-height:1.9}.footer a{display:block}.footer h4{color:white;margin:0 0 14px}.copy{border-top:1px solid #23384d;margin-top:35px;padding-top:20px;font-size:12px}.wa{position:fixed;bottom:22px;right:22px;background:#21c063;color:white;border-radius:50px;padding:15px 19px;font-weight:800;z-index:30;box-shadow:0 10px 30px #0004}.tag{display:inline-block;background:#ffbc2120;color:#ffcc54;border:1px solid #ffbc2145;padding:8px 13px;border-radius:40px;font-size:11px;font-weight:800;letter-spacing:1px}@media(max-width:900px){.links{display:none;position:absolute;top:82px;left:0;right:0;background:white;flex-direction:column;align-items:stretch;padding:24px;box-shadow:0 20px 30px #0002}.links.open{display:flex}.menu{display:block}.navinner>.btn{display:none}.features .wrap{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,1fr)}.productgrid{grid-template-columns:repeat(2,1fr)}.intro{grid-template-columns:1fr}.contact .wrap{align-items:start;flex-direction:column}}@media(max-width:580px){.top .wrap span:last-child{display:none}.wrap{width:min(100% - 32px,1240px)}.hero{min-height:auto}.hero .wrap{padding:80px 0}.hero h1{letter-spacing:-1.5px}.features .wrap{grid-template-columns:1fr 1fr;gap:15px}.feature{font-size:11px}.feature .sym{font-size:22px}.grid,.productgrid,.footgrid{grid-template-columns:1fr}.sectiontop{display:block}.sectiontop p{margin-top:15px}section{padding:60px 0}.intro img{height:280px}.contact h2{font-size:33px}}


.hero h1{max-width:850px}.product-cta{font-size:12px;font-weight:800;color:#986900}.custom-logo-image{max-width:210px;height:auto}.logo:has(.custom-logo-image):before{display:none}.logo:has(.custom-logo-image){font-size:0}.admin-bar .nav{top:32px}@media(max-width:782px){.admin-bar .nav{top:46px}}

/* Identidad corporativa original CBELEC */
.logo:has(.brand-logo):before{display:none}.logo:has(.brand-logo){display:inline-flex;align-items:center;letter-spacing:normal}.brand-logo{display:block;width:190px;height:70px;object-fit:contain}.footer-brand .brand-logo{width:190px;height:85px;object-fit:contain}.navinner{min-height:82px}.navinner .logo{flex-shrink:0}@media(max-width:580px){.navinner .brand-logo{width:155px;height:65px}}

/* Galería de trabajos CBELEC */
.projects{background:#fff}.projectgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.projectphoto{display:block;overflow:hidden;border-radius:9px;aspect-ratio:4/3;background:#edf1f4}.projectphoto img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.projectphoto:hover img{transform:scale(1.055)}@media(max-width:850px){.projectgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.projectgrid{gap:9px}}

.cbelec-extra{padding:78px 0;background:#f5f8fb}.cbelec-extra:nth-of-type(even){background:white}
.cbelec-extra h2{font-size:clamp(28px,3vw,43px);margin:12px 0}.cbelec-extra p{color:#607086;line-height:1.7}
.cbelec-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:28px}
.cbelec-gallery a{display:block;overflow:hidden;border-radius:9px;aspect-ratio:4/3;background:#e5eaf0}
.cbelec-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.cbelec-gallery a:hover img{transform:scale(1.04)}
@media(max-width:800px){.cbelec-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
