/*
Theme Name: Sinapsis Electric
Author: Sinapsis Electric
Description: Sitio corporativo de energía crítica, productos, servicios y sectores. Textos y contacto editables desde Personalizar.
Version: 3.2.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: sinapsis-electric
*/
:root{--red:#ce1520;--ink:#222;--muted:#60656a;--line:#ddd}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:115px}body{margin:0;color:var(--ink);font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit}img{max-width:100%;height:auto}a:focus-visible,summary:focus-visible{outline:3px solid #ecad20;outline-offset:5px}.wrap{width:min(1240px,92%);margin:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:100;background:white;padding:12px}.top{background:#222;color:#eee;font-size:11px;letter-spacing:.08em;padding:7px 0}.top .wrap{display:flex;justify-content:space-between;gap:16px}.header{background:#fff;position:sticky;top:0;z-index:30;box-shadow:0 1px 8px #00000012}.nav{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0}.brand{display:block;flex-shrink:0;line-height:0}.brand img{width:205px;height:auto;max-height:78px;object-fit:contain}nav{display:flex;gap:27px;align-items:center}nav a{text-decoration:none;color:#555;font-size:14px}nav a:hover{color:var(--red)}nav a:last-child{color:var(--red);font-weight:700}details.mobile{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--red);border:1px solid var(--red);color:white;padding:12px 23px;text-decoration:none;font-size:14px;font-weight:650;border-radius:2px}.btn:hover{background:#a80b15;border-color:#a80b15}.btn.outline{background:#00000020;border-color:#ffffff80}.btn.outline:hover{background:#ffffff20}.btn.light{background:white;color:var(--red);border-color:white}.eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:750;color:var(--red);margin:0 0 14px}h1,h2,h3{line-height:1.22;font-weight:500}h1{font-size:clamp(35px,3.7vw,55px);letter-spacing:-.035em;margin:12px 0 22px}h2{font-size:clamp(30px,3vw,42px);letter-spacing:-.025em;margin:0 0 22px}h3{font-size:21px;margin:0 0 13px}p{margin:0 0 18px}.hero{background:linear-gradient(#00000049,#00000078),url('assets/01a.webp') center center/cover no-repeat;color:white;padding:48px 0 0}.hero-content{text-align:center;max-width:1040px;padding-bottom:42px}.hero-brand{display:inline-block;background:#fffffff5;padding:14px 28px;margin-bottom:20px;box-shadow:0 5px 25px #0002}.hero-brand img{width:300px;height:auto;display:block}.hero .eyebrow{color:#fff;margin-bottom:14px}.hero-description{font-size:17px;color:#fff;text-shadow:0 1px 5px #000;max-width:970px;margin:0 auto 25px}.actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.sectors-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:27px;background:#191919;padding:28px 30px}.sector-preview{text-decoration:none;min-width:0}.sector-preview h2{font-size:22px;font-weight:350;letter-spacing:-.025em;margin:0 0 12px}.sector-preview img{display:block;width:100%;aspect-ratio:1.55;object-fit:cover;transition:filter .2s}.sector-preview:hover img{filter:brightness(1.18)}.sector-preview span{font-size:11px;display:block;color:#ccc;margin-top:10px}.products{padding:85px 0;background:#f6f6f6}.section-lead{max-width:730px;color:var(--muted);font-size:17px;margin-bottom:35px}.product-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:42px;align-items:center}.product-visual{background:linear-gradient(#111a,#111a),url('assets/02a.webp') center/cover;padding:35px 15px 20px;color:white}.product-visual img{width:100%;height:auto;display:block}.product-visual p{text-align:center;font-size:13px;margin:20px 10px 0}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.product-card{border-top:2px solid var(--red);padding-top:18px}.product-card h3{font-size:19px}.product-card p{font-size:13px;color:var(--muted);margin-bottom:12px}.product-card a,.sector-card a{color:var(--red);font-size:12px;text-decoration:none;font-weight:700}.services{background:linear-gradient(90deg,#111e 0%,#111c 55%,#1115 100%),url('assets/03.webp') center/cover no-repeat;color:white;padding:80px 0}.services-panel{max-width:770px}.services .eyebrow{color:#ff949a}.services .section-lead{color:#ddd}.service{border-top:1px solid #ffffff35;padding:24px 0 23px}.service h3{font-size:24px}.service p{color:#ddd;font-size:14px;max-width:690px;margin-bottom:11px}.service a{font-size:12px;color:#fff;text-decoration:underline;text-underline-offset:5px}#sectores{padding:80px 0}.sector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.sector-card{background:#f5f5f5;scroll-margin-top:130px}.sector-card img{width:100%;aspect-ratio:1.65;object-fit:cover;display:block}.sector-card>div{padding:25px}.sector-card p{font-size:14px;color:var(--muted)}.about{padding:75px 0;background:#eee}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px}.about p{color:var(--muted)}.about-note{border-left:3px solid var(--red);padding:15px 0 15px 35px}.about-note h3{font-size:24px}.contact{background:#b7131e;color:white;padding:70px 0}.contact .eyebrow{color:#ffd3d6}.contact p{color:#ffe4e6}.contact-links{display:flex;flex-direction:column;align-items:flex-start;gap:15px}.contact-links a{overflow-wrap:anywhere;max-width:100%}.contact-links span{font-size:14px}.footer{padding:27px 0;background:#181818;color:#bbb;font-size:11px}.footer .wrap{display:flex;justify-content:space-between;gap:20px;padding-right:100px}.whatsapp-float{position:fixed;right:23px;bottom:22px;z-index:50;display:flex;align-items:center;gap:7px;background:#167c41;color:white;text-decoration:none;box-shadow:0 3px 14px #0004;border-radius:40px;padding:10px 17px 10px 11px;font-size:13px;font-weight:650}.whatsapp-float svg{width:29px;height:29px}.entry{min-height:65vh;padding:60px 0}.entry a{color:var(--red)}@media(min-width:783px){.admin-bar .header{top:32px}}@media(max-width:1000px){nav{gap:17px}.brand img{width:175px}.sector-preview h2{font-size:19px}.sectors-preview{gap:16px;padding:24px}.product-layout{grid-template-columns:1fr;gap:32px}.product-visual{max-width:650px;margin:auto}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.about-grid{gap:40px}}@media(max-width:760px){html{scroll-padding-top:100px}.top .wrap>span{display:none}.top{font-size:10px}.nav{padding:12px 0}.brand img{width:160px;max-height:60px}nav{display:none}details.mobile{display:block;position:relative}summary{cursor:pointer;font-weight:600;font-size:14px}.mobile>div{position:absolute;right:0;top:34px;min-width:190px;padding:20px;background:#fff;box-shadow:0 10px 30px #0003;display:grid;gap:13px}.mobile a{text-decoration:none;font-size:14px}.hero{padding-top:30px}.hero-brand{padding:12px 23px}.hero-brand img{width:225px}.hero-content{padding-bottom:30px}.hero-description{font-size:15px}h1{font-size:34px}.sectors-preview{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px;gap:23px 18px}.sector-preview:last-child{grid-column:1/-1;max-width:340px;width:100%;justify-self:center}.sector-preview h2{font-size:20px}.product-grid,.sector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.about-grid{grid-template-columns:1fr;gap:25px}.products,.services,#sectores{padding:52px 0}.about,.contact{padding:50px 0}.footer .wrap{display:block;padding-right:48px}.footer span{display:block}.whatsapp-float{right:14px;bottom:14px;padding:9px}.whatsapp-float span{display:none}.about-note{padding-left:22px}.section-lead{font-size:16px}}@media(max-width:430px){.product-grid,.sector-grid{grid-template-columns:1fr}.hero-brand img{width:190px}.hero h1{font-size:30px}.actions{flex-direction:column;align-items:center}.actions .btn{width:100%;max-width:300px}.sectors-preview{gap:20px 12px;padding:18px}.sector-preview h2{font-size:18px}.sector-preview:last-child{max-width:240px}.contact-links{font-size:14px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Identidad 3D: superficies oscuras y logo con transparencia real. */
:root{--red:#de202b}.top{background:#0c1016;color:#bfc7d0}.header{background:#141b24;box-shadow:0 2px 14px #0003}.brand img{width:235px;max-height:84px}nav a{color:#e5e8ed}nav a:hover,nav a:last-child{color:#ff7580}.hero-brand{background:transparent;box-shadow:none;padding:0;margin:0 0 24px}.hero-brand img{width:440px;height:auto;filter:drop-shadow(0 3px 5px #0008)}.hero{background-image:linear-gradient(#06111d8c,#06111db0),url('assets/01a.webp')}.hero h1{max-width:950px;margin:12px auto 22px}.about{background:#e9edf1}.mobile summary{color:#fff}.mobile>div{background:#141b24}.mobile a{color:#fff}@media(max-width:1000px){.brand img{width:190px}nav{gap:18px}}@media(max-width:760px){.brand img{width:185px;max-height:65px}.hero-brand{padding:0}.hero-brand img{width:300px;max-width:100%}}@media(max-width:430px){.hero-brand img{width:280px}}

/* Aparición progresiva del logo al cargar la portada. */
.hero-brand{perspective:1000px;max-width:100%}
.hero-brand img{transform-origin:center;backface-visibility:hidden;animation:sinapsis-logo-reveal 2.8s cubic-bezier(.22,.61,.36,1) .15s both}
@keyframes sinapsis-logo-reveal{
  0%{opacity:0;clip-path:inset(0 100% 0 0);filter:blur(12px) drop-shadow(0 3px 5px #0008);transform:scale(.3) rotateY(-65deg)}
  20%{opacity:.25;clip-path:inset(0 78% 0 0)}
  60%{opacity:.85;clip-path:inset(0 20% 0 0);filter:blur(2px) drop-shadow(0 3px 5px #0008);transform:scale(.9) rotateY(-12deg)}
  100%{opacity:1;clip-path:inset(0 0 0 0);filter:blur(0) drop-shadow(0 3px 5px #0008);transform:scale(1) rotateY(0deg)}
}
@media(prefers-reduced-motion:reduce){.hero-brand img{animation:none;transform:none;opacity:1;clip-path:none;filter:drop-shadow(0 3px 5px #0008)}}
