:root{--bg:#07111f;--surface:#0d1b2d;--surface2:#10223a;--text:#eef5ff;--muted:#a0b1c8;--line:rgba(160,190,225,.16);--blue:#4aa8ff;--cyan:#61e3e7;--header:rgba(7,17,31,.86);--shadow:0 24px 80px rgba(0,0,0,.24)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.6}body.light{--bg:#f5f8fc;--surface:#fff;--surface2:#eaf1fa;--text:#102038;--muted:#5e6f85;--line:rgba(29,58,92,.15);--header:rgba(245,248,252,.9);--shadow:0 24px 70px rgba(29,58,92,.12)}a{color:inherit;text-decoration:none}.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:30;background:var(--header);backdrop-filter:blur(18px);border-bottom:1px solid transparent;transition:.25s}.site-header.scrolled{border-color:var(--line);box-shadow:0 8px 35px rgba(0,0,0,.12)}.nav-wrap{min-height:78px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:11px;margin-right:auto}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,var(--blue),#2365d8);color:#fff;font-weight:900;letter-spacing:-1px;box-shadow:0 8px 24px #287dd84d}.brand strong,.brand small{display:block}.brand strong{font-size:14px;letter-spacing:.02em}.brand small{font-size:10px;color:var(--muted);max-width:220px}.main-nav{display:flex;align-items:center;gap:28px}.main-nav a{font-size:13px;color:var(--muted);transition:.2s}.main-nav a:hover{color:var(--blue)}.theme-toggle,.menu-toggle{border:1px solid var(--line);color:var(--text);background:var(--surface);width:39px;height:39px;border-radius:12px;cursor:pointer;font-size:19px}.menu-toggle{display:none}.hero{position:relative;overflow:hidden;min-height:630px;display:flex;flex-direction:column;background:radial-gradient(ellipse at 80% 35%,rgba(24,101,177,.2),transparent 38%),radial-gradient(ellipse at 10% 80%,rgba(23,81,143,.14),transparent 36%),var(--bg)}.hero-image{position:absolute;inset:0;background-position:center;background-size:cover;opacity:.15;pointer-events:none}.hero-inner{position:relative;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:48px;flex:1;padding-top:58px;padding-bottom:48px}.hero-copy{max-width:640px}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:var(--cyan);font-size:10px;font-weight:800;letter-spacing:.18em}.pulse{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 5px #61e3e71c}.hero h1{font-size:clamp(42px,5.4vw,70px);line-height:1.04;letter-spacing:-.055em;margin:23px 0 22px;font-weight:780}.hero h1:after{content:".";color:var(--blue)}.hero-description{max-width:560px;color:var(--muted);font-size:16px;line-height:1.85}.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:29px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:13px;padding:12px 19px;min-height:47px;border-radius:10px;font-size:13px;font-weight:750;transition:transform .2s,box-shadow .2s,border-color .2s}.btn:hover{transform:translateY(-2px)}.btn-primary{color:#fff;background:linear-gradient(110deg,#2788f4,#3b65dc);box-shadow:0 12px 30px #286ee73b}.btn-outline{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--text)}.hero-note{margin-top:28px;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.note-icon{width:21px;height:21px;display:grid;place-items:center;border:1px solid #61e3e760;border-radius:50%;color:var(--cyan)}.hero-visual{height:400px;position:relative;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #4aa8ff22;border-radius:50%;transform:rotate(-25deg)}.orbit-one{width:390px;height:270px}.orbit-two{width:310px;height:400px;transform:rotate(48deg)}.main-tech-card{position:relative;width:min(330px,90%);background:linear-gradient(145deg,#132945,#0a1729);border:1px solid #5eabf74d;border-radius:20px;box-shadow:0 25px 100px #0008,0 0 55px #267dd51c;transform:rotate(-4deg);overflow:hidden}.screen-top{height:40px;display:flex;align-items:center;gap:5px;padding:0 15px;border-bottom:1px solid #ffffff13;color:#91a9c8;font-size:8px;letter-spacing:.14em}.screen-top i{width:6px;height:6px;border-radius:50%;background:#4aa8ff}.screen-top i:nth-child(2){background:#61e3e7}.screen-top i:nth-child(3){background:#f5b96b}.screen-top span{margin-left:auto}.screen-content{padding:26px}.screen-icon{font-size:44px;color:var(--cyan);margin-bottom:22px}.screen-line{height:7px;width:62%;border-radius:9px;background:#345171;margin:12px 0}.screen-line.long{width:90%;background:linear-gradient(90deg,#4aa8ff,#61e3e7)}.screen-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:26px 0}.screen-grid b{padding:17px 5px;text-align:center;border:1px solid #ffffff12;border-radius:8px;color:#93bce9;font-size:11px}.screen-status{font-size:10px;color:#b7c7dc;display:flex;align-items:center;gap:8px}.screen-status span{width:6px;height:6px;border-radius:50%;background:#61e3b4;box-shadow:0 0 10px #61e3b4}.float-chip{position:absolute;z-index:2;background:var(--surface);border:1px solid var(--line);padding:10px 14px;border-radius:11px;box-shadow:var(--shadow);font-size:11px;font-weight:700}.chip-one{top:55px;left:0}.chip-two{right:-2px;top:130px}.chip-three{bottom:42px;left:22px}.hero-bottom{display:flex;justify-content:space-between;gap:12px;padding:19px 0;border-top:1px solid var(--line);color:#7186a1;font-size:9px;letter-spacing:.17em;font-weight:800}.section{padding:100px 0}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:38px}.section-heading h2,.about-copy h2,.contact-panel h2{font-size:clamp(29px,3.5vw,43px);line-height:1.15;letter-spacing:-.04em;margin:12px 0 0}.section-heading>p{max-width:390px;color:var(--muted);font-size:13px;margin:0 0 5px}.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.service-card{min-height:255px;padding:25px;border:1px solid var(--line);background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface) 72%,transparent));border-radius:16px;transition:transform .25s,border-color .25s}.service-card:hover{transform:translateY(-5px);border-color:#4aa8ff70}.service-card-top{display:flex;justify-content:space-between;align-items:center}.service-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:13px;background:#318ce51a;border:1px solid #4aa8ff2b;font-size:22px}.service-arrow{color:var(--muted)}.service-card h3{font-size:17px;margin:24px 0 8px;letter-spacing:-.02em}.service-card p{color:var(--muted);font-size:12px;line-height:1.8;min-height:44px}.text-link{display:inline-flex;gap:9px;align-items:center;margin-top:12px;color:var(--blue);font-size:12px;font-weight:750}.about-section{background:linear-gradient(110deg,var(--surface),var(--bg));border-block:1px solid var(--line)}.about-grid{display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:100px}.about-art{height:350px;position:relative;display:grid;place-items:center;border:1px solid var(--line);border-radius:22px;background:radial-gradient(circle at 50% 45%,#1b579044,transparent 50%),var(--bg);overflow:hidden}.about-square{width:205px;height:205px;border:1px solid #4aa8ff80;border-radius:25px;transform:rotate(-8deg);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;box-shadow:0 0 80px #287dd822,inset 0 0 40px #287dd811}.about-square span{font-size:72px;font-weight:900;letter-spacing:-.1em;color:var(--blue)}.about-square small{text-align:center;font-size:9px;letter-spacing:.2em;color:var(--muted)}.about-caption{position:absolute;bottom:18px;right:20px;font-size:10px;color:var(--muted);letter-spacing:.12em}.about-copy>p{color:var(--muted);font-size:14px;line-height:1.9;margin:22px 0}.about-points{display:grid;gap:12px;margin-top:27px}.about-points div{display:flex;align-items:center;gap:15px;padding-bottom:12px;border-bottom:1px solid var(--line);font-size:13px}.about-points b{font-size:10px;color:var(--cyan);letter-spacing:.1em}.contact-section{padding-top:75px;padding-bottom:85px}.contact-panel{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:44px;border-radius:20px;border:1px solid #4aa8ff3a;background:radial-gradient(ellipse at 0 0,#287dd822,transparent 50%),var(--surface)}.contact-panel h2{max-width:540px}.contact-panel p{color:var(--muted);font-size:13px}.contact-actions{display:flex;flex-direction:column;align-items:stretch;min-width:210px;gap:10px}.contact-hours{text-align:center;font-size:10px!important}.site-footer{border-top:1px solid var(--line);padding:35px 0 18px;background:var(--bg)}.footer-content{display:flex;justify-content:space-between;gap:25px}.footer-content strong{font-size:14px}.footer-content p,.footer-contact{font-size:11px;color:var(--muted)}.footer-contact{display:flex;flex-direction:column;gap:6px}.copyright{border-top:1px solid var(--line);margin-top:25px;padding-top:16px;font-size:10px;color:var(--muted)}.copyright a{color:var(--blue)}.whatsapp-float{position:fixed;bottom:22px;right:22px;z-index:25;padding:12px 17px;background:#16a765;color:#fff;border-radius:999px;box-shadow:0 8px 30px #16a76544;font-size:12px;font-weight:800}.admin-link{color:var(--muted)}@media(max-width:850px){.main-nav{gap:16px}.hero-inner{grid-template-columns:1fr .8fr;gap:20px}.hero-visual{transform:scale(.9)}.about-grid{gap:45px}.contact-panel{padding:30px}.services-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.container{width:min(100% - 30px,1160px)}.nav-wrap{min-height:68px;gap:10px}.brand small{max-width:180px}.menu-toggle{display:block;order:3}.theme-toggle{order:2}.main-nav{display:none;position:absolute;left:15px;right:15px;top:68px;padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}.main-nav.open{display:flex}.main-nav a{padding:12px}.hero-inner{grid-template-columns:1fr;padding-top:65px;padding-bottom:20px}.hero h1{font-size:clamp(42px,12vw,60px)}.hero-description{font-size:14px}.hero-visual{height:300px;margin-top:5px;transform:none}.orbit-one{width:310px;height:220px}.orbit-two{width:250px;height:330px}.main-tech-card{width:280px}.chip-one{left:4px;top:25px}.chip-two{right:0;top:95px}.chip-three{bottom:15px;left:8px}.hero-bottom{flex-wrap:wrap;font-size:8px}.section{padding:70px 0}.section-heading{display:block}.section-heading>p{margin-top:15px}.services-grid{grid-template-columns:1fr}.service-card{min-height:220px}.about-grid{grid-template-columns:1fr;gap:35px}.about-art{height:285px}.contact-panel{display:block;padding:26px}.contact-actions{margin-top:24px}.footer-content{flex-direction:column}.footer-contact{gap:8px}}
/* Tema corporativo claro */


/* Ajuste de identidad visual: tema claro corporativo azul y turquesa */
body.light{
  --bg:#f3f6fb; --surface:#ffffff; --surface2:#e8eff8;
  --text:#14243a; --muted:#5c6d82; --line:rgba(20,48,82,.13);
  --blue:#1769d2; --cyan:#079b9b; --header:rgba(248,250,253,.94);
  --shadow:0 18px 50px rgba(28,55,90,.10);
}
body.light .hero{background:radial-gradient(ellipse at 82% 30%,rgba(23,105,210,.12),transparent 40%),radial-gradient(ellipse at 12% 78%,rgba(7,155,155,.08),transparent 38%),var(--bg)}
body.light .eyebrow, body.light .note-icon, body.light .about-points b{color:#078b8b}
body.light .pulse{background:#079b9b;box-shadow:0 0 0 5px #079b9b1c}
body.light .brand-mark{background:linear-gradient(135deg,#1769d2,#079b9b);box-shadow:0 8px 22px #1769d226}
body.light .btn-primary{background:linear-gradient(110deg,#1769d2,#2455b7);box-shadow:0 10px 25px #1769d226}
body.light .btn-outline{background:#ffffff;border-color:#d5dfec}
body.light .service-icon{background:#1769d210;border-color:#1769d226}
body.light .service-card:hover,body.light .portfolio-card:hover{border-color:#1769d266}
body.light .text-link,body.light .portfolio-content .project-category{color:#1769d2}
body.light .about-square{border-color:#1769d266;box-shadow:0 0 60px #1769d218,inset 0 0 35px #1769d20d}
body.light .about-square span{color:#1769d2}
body.light .contact-panel{border-color:#1769d226;background:radial-gradient(ellipse at 0 0,#1769d212,transparent 52%),#fff}
body.light .whatsapp-float{background:#138b57}
body.light .site-header.scrolled{box-shadow:0 8px 30px rgba(28,55,90,.08)}


/* Pulido visual: fondos con contraste, navegación destacada y WhatsApp flotante */
:root{--blue:#4aa8ff;--cyan:#61e3e7}
body.light{--bg:#f3f6fb;--surface:#fff;--surface2:#e7eff9;--text:#14243a;--muted:#5c6d82;--line:rgba(20,48,82,.14)}
body.light main{background:linear-gradient(180deg,#f3f6fb 0%,#fff 44%,#f1f6fc 100%)}
body.light .section:nth-of-type(even){background:linear-gradient(135deg,#eaf2fb 0%,#f8fbff 100%)}
body.light .site-header{box-shadow:0 4px 20px rgba(27,65,110,.06)}
.main-nav a{position:relative;display:inline-flex;align-items:center;padding:10px 12px;border-radius:9px;font-weight:700;color:var(--muted);transition:color .2s,background .2s,transform .2s}
.main-nav a:hover,.main-nav a:focus-visible{color:var(--blue);background:rgba(23,105,210,.09);outline:none}
.main-nav a::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--blue),var(--cyan));transform:scaleX(0);transform-origin:left;transition:transform .2s}
.main-nav a:hover::after,.main-nav a:focus-visible::after{transform:scaleX(1)}
body.light .main-nav a:hover,body.light .main-nav a:focus-visible{color:#1458ad;background:#e7f0fd}
body.light .service-card,body.light .portfolio-card{box-shadow:0 8px 26px rgba(29,58,92,.045)}
body.light .service-card:hover,body.light .portfolio-card:hover{box-shadow:0 16px 34px rgba(23,105,210,.11);transform:translateY(-5px)}
.whatsapp-float{position:fixed;right:22px;bottom:22px;z-index:1000;display:flex;align-items:center;gap:10px;min-height:58px;padding:9px 17px 9px 10px;border:1px solid rgba(255,255,255,.3);border-radius:999px;background:#16a765;color:#fff;box-shadow:0 10px 30px rgba(22,167,101,.34);font-size:12px;font-weight:600;transition:transform .2s,box-shadow .2s,background .2s}
.whatsapp-float:hover{transform:translateY(-4px);background:#128c54;box-shadow:0 15px 36px rgba(22,167,101,.42)}
.whatsapp-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.2);font-size:22px;font-weight:900}
.whatsapp-label{display:flex;flex-direction:column;line-height:1.35;white-space:nowrap}.whatsapp-label strong{font-size:14px}.whatsapp-arrow{font-size:18px;margin-left:3px}
@media(max-width:650px){.main-nav a{display:flex;padding:13px 14px;border-bottom:1px solid var(--line);border-radius:8px}.main-nav a:last-child{border-bottom:0}.main-nav a::after{display:none}.whatsapp-float{right:14px;bottom:14px;min-height:54px;padding:7px 13px 7px 8px}.whatsapp-icon{width:38px;height:38px}.whatsapp-label strong{font-size:13px}}

/* Logo corporativo */
.brand-logo{width:58px;height:52px;object-fit:contain;display:block;flex:0 0 auto;border-radius:6px}.brand{gap:12px}

/* Rediseño inspirado en la referencia: seguridad electrónica y marca corporativa */
body.light{--bg:#f4f7fb;--surface:#fff;--text:#102b4e;--muted:#526981;--blue:#0878e8;--cyan:#12a8e8;--header:#fff}
.site-header{background:#fff;box-shadow:0 3px 20px rgba(7,38,76,.09)}
.nav-wrap{min-height:86px;gap:20px}
.brand{gap:10px;min-width:270px}.brand-logo{width:78px;height:68px;object-fit:contain;border-radius:0}.brand-name{display:block;line-height:1.2}.brand-name strong{font-size:15px;color:#0c2a4d;letter-spacing:-.02em}.brand-name small{font-size:12px;color:#0c2a4d;font-weight:650;max-width:none}
.main-nav{gap:10px}.main-nav a{font-size:14px;color:#173452;padding:10px 12px}.admin-link{white-space:nowrap;font-size:12px;min-height:44px;padding:10px 15px}.theme-toggle{display:none}
.hero-security{min-height:590px;background:#03172e;color:#fff;overflow:hidden}.hero-security .hero-inner{width:min(1400px,calc(100% - 60px));grid-template-columns:.88fr 1.12fr;gap:18px;padding-top:30px;padding-bottom:32px;min-height:490px}.hero-security .hero-copy{position:relative;z-index:2;max-width:620px}.hero-security .eyebrow{color:#56c7ff;font-size:11px;letter-spacing:.12em}.hero-security h1{font-size:clamp(38px,4.1vw,62px);line-height:1.05;letter-spacing:-.045em;margin:16px 0 18px}.hero-security h1:after{content:""}.hero-security h1 em{display:block;color:#078cf2;font-style:normal}.hero-security .hero-description{color:#e2edf8;font-size:16px;line-height:1.55;max-width:560px}.hero-security .hero-visual{height:430px;min-width:0}.hero-security-visual{background-image:linear-gradient(90deg,#03172e 0%,rgba(3,23,46,.08) 30%,rgba(3,23,46,0) 100%),url('../img/seguridad-electronica-hero.jpg');background-position:center;background-size:cover;border-radius:10px;filter:saturate(1.05)}.hero-specialties{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:24px;color:#fff;font-size:11px;font-weight:700}.hero-specialties span{display:flex;flex-direction:column;gap:5px;max-width:115px}.hero-specialties span:first-letter{color:#12a8ff;font-size:22px}.hero-security .btn-primary{background:#0788ef}.hero-security .btn-outline{border-color:#159ef2;color:#fff;background:transparent}.hero-benefits{background:#f7faff;color:#12345a;border-bottom:1px solid #e4edf7}.benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0;gap:15px}.benefits-grid>div{display:flex;align-items:center;gap:14px;border-right:1px solid #dbe6f2;padding:0 18px}.benefits-grid>div:last-child{border-right:0}.benefits-grid b{font-size:31px;color:#0878e8;font-weight:500}.benefits-grid span{display:flex;flex-direction:column}.benefits-grid strong{font-size:13px}.benefits-grid small{font-size:11px;color:#5e7590}.services-section{padding-top:62px;background:linear-gradient(#f7faff,#fff)}.section-heading{align-items:center}.section-heading h2{color:#102f53}.service-card{background:#fff;border:1px solid #e3ebf5;border-radius:10px;box-shadow:0 6px 20px rgba(17,52,91,.06);min-height:235px}.service-card h3{color:#075fbd}.service-card p{color:#536a83}.service-icon{background:#eaf4ff;color:#0878e8}.service-arrow{color:#0878e8}.whatsapp-float{z-index:1000}
@media(max-width:1050px){.brand{min-width:220px}.brand-name strong{font-size:13px}.main-nav{gap:2px}.main-nav a{padding:8px;font-size:12px}.hero-security .hero-inner{grid-template-columns:1fr 1fr}.hero-security .hero-visual{height:360px}}
@media(max-width:760px){.nav-wrap{min-height:72px;gap:8px}.brand{min-width:0;margin-right:auto}.brand-logo{width:60px;height:55px}.brand-name strong{font-size:12px}.brand-name small{font-size:10px}.admin-link{display:none}.hero-security .hero-inner{width:calc(100% - 30px);grid-template-columns:1fr;padding-top:48px;gap:10px}.hero-security h1{font-size:clamp(38px,10vw,52px)}.hero-security .hero-visual{height:260px;margin:0 -4px}.hero-specialties{grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px}.benefits-grid{grid-template-columns:repeat(2,1fr);padding:16px 0}.benefits-grid>div{border-right:0;padding:10px 4px}.benefits-grid b{font-size:25px}.benefits-grid strong{font-size:12px}.benefits-grid small{font-size:10px}}

/* Carrusel automático de imágenes principales */
.hero-security-visual{position:relative;transition:background-image .5s ease;background-image:linear-gradient(90deg,#03172e 0%,rgba(3,23,46,.08) 30%,rgba(3,23,46,0) 100%),url('../img/seguridad-electronica-hero.jpg')}
.hero-carousel-dots{position:absolute;z-index:3;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:8px 12px;border-radius:30px;background:rgba(2,15,31,.55);backdrop-filter:blur(8px)}
.hero-dot{width:9px;height:9px;border:0;border-radius:50%;padding:0;background:#b9d4ec;cursor:pointer;opacity:.8}.hero-dot.active{width:25px;border-radius:8px;background:#078cf2;opacity:1}
@media(max-width:760px){.hero-carousel-dots{bottom:8px}}

/* Ajustes finales del carrusel principal y contraste del logotipo */
.brand-logo{filter:contrast(1.12) saturate(1.12);}
.hero-security .hero-inner{grid-template-columns:.92fr 1.08fr;}
.hero-security-visual{background-position:center;background-size:cover;overflow:hidden;border-radius:0;}
.hero-carousel-arrow{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.65);background:rgba(1,15,31,.62);color:#fff;font-size:32px;line-height:1;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .2s;}
.hero-carousel-arrow:hover{background:#0878e8;transform:translateY(-50%) scale(1.06)}
.hero-carousel-arrow.prev{left:12px}.hero-carousel-arrow.next{right:12px}
.hero-security .hero-visual{background-repeat:no-repeat;}
@media(max-width:760px){.hero-carousel-arrow{width:34px;height:34px;font-size:26px}.hero-carousel-arrow.prev{left:7px}.hero-carousel-arrow.next{right:7px}.hero-security .hero-visual{height:260px}}

/* Diseño principal basado en la referencia enviada: tres paneles de servicio */
.brand-logo{filter:none!important;mix-blend-mode:multiply;width:86px;height:72px;object-fit:contain;}
.brand-name strong,.brand-name small{color:#082c58!important;}
.reference-hero{display:block;min-height:0;background:#fff;color:#fff;padding:0;}
.reference-panels{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:410px;overflow:hidden;background:#03172e;isolation:isolate;}
.reference-panel{position:relative;display:flex;align-items:flex-start;min-width:0;min-height:410px;padding:42px 22px 55px 3.6vw;background-image:linear-gradient(90deg,rgba(2,17,38,.94) 0%,rgba(2,17,38,.76) 45%,rgba(2,17,38,.22) 100%),var(--panel-image);background-size:cover;background-position:center;overflow:hidden;border-right:1px solid rgba(255,255,255,.2);transition:filter .5s,background-position .7s,box-shadow .5s;}
.reference-panel:last-of-type{border-right:0;}
.reference-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,12,28,.4),transparent 55%);pointer-events:none;}
.reference-panel.active{background-position:54% center;box-shadow:inset 0 0 0 2px #078cf2;filter:saturate(1.12);}
.reference-panel-content{position:relative;z-index:1;width:100%;max-width:420px;}
.reference-panel h1,.reference-panel h2{margin:4px 0 8px;font-size:clamp(25px,2.6vw,39px);line-height:1.08;letter-spacing:-.045em;font-weight:850;color:#fff;}
.reference-panel h1:after{content:none!important;}
.reference-panel h2 em{font-style:normal;color:#8bd5ff;}
.panel-tagline{margin:0 0 15px;font-size:clamp(11px,1vw,14px);line-height:1.4;font-weight:650;color:#fff;}
.reference-panel ul{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:6px;font-size:clamp(10px,.92vw,13px);line-height:1.35;color:#fff;}
.reference-panel li{display:flex;align-items:flex-start;gap:8px;}
.reference-panel li:before{content:"✓";display:inline-grid;place-items:center;flex:0 0 17px;width:17px;height:17px;border-radius:50%;background:#078cf2;color:#fff;font-size:11px;font-weight:900;}
.panel-button{display:inline-flex;align-items:center;gap:18px;border:2px solid #009cf4;border-radius:14px;padding:8px 15px;color:#fff;font-size:12px;font-weight:750;min-width:145px;justify-content:space-between;transition:background .2s;}
.panel-button:hover{background:#0878e8;}
.panel-button span{font-size:18px;line-height:1;}
.hero-carousel-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.85);background:rgba(0,14,31,.65);color:#fff;font-size:31px;line-height:1;display:grid;place-items:center;cursor:pointer;}
.hero-carousel-arrow.prev{left:8px}.hero-carousel-arrow.next{right:8px}
.hero-carousel-dots{position:absolute;z-index:6;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:8px;padding:7px 10px;border-radius:25px;background:rgba(2,15,31,.42);}
.hero-dot{width:10px;height:10px;border:0;border-radius:50%;padding:0;background:#b9d4ec;cursor:pointer;opacity:.75;transition:all .25s;}
.hero-dot.active{width:24px;border-radius:8px;background:#078cf2;opacity:1;}
.reference-hero .hero-benefits{background:#f7faff;color:#12345a;}
.reference-hero .benefits-grid{width:min(1400px,calc(100% - 60px));}
@media(max-width:900px){.reference-panel{padding:32px 16px 54px;}.reference-panel h1,.reference-panel h2{font-size:clamp(23px,3vw,30px)}.reference-panel ul{font-size:11px}.panel-tagline{font-size:12px}.brand-logo{width:72px;height:64px}}
@media(max-width:650px){.reference-panels{grid-template-columns:1fr;min-height:390px}.reference-panel{display:none;min-height:390px;padding:35px 34px 60px;background-position:center;background-size:cover;border:0}.reference-panel.active{display:flex;animation:panelReveal .45s ease both}.reference-panel h1,.reference-panel h2{font-size:clamp(34px,9vw,46px)}.reference-panel ul{font-size:13px;gap:8px}.panel-tagline{font-size:13px}.panel-button{font-size:13px}.reference-hero .benefits-grid{width:calc(100% - 30px)}.brand-logo{width:58px;height:55px}.brand-name strong{font-size:12px}.brand-name small{font-size:10px}}
@keyframes panelReveal{from{opacity:.45;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}

/* Carrusel corregido: los tres paneles giran realmente cada cinco segundos. */
.reference-panel{order:0;transition:background-position .5s ease,filter .4s ease,box-shadow .4s ease;}
@media(min-width:651px){.reference-panels.carousel-advance .reference-panel{animation:heroPanelTransition .65s ease both;}}
@keyframes heroPanelTransition{from{opacity:.65;filter:brightness(.72);transform:translateY(5px)}to{opacity:1;filter:brightness(1);transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.reference-panels.carousel-advance .reference-panel,.reference-panel.active{animation:none!important;transition:none!important}}

/* Carrusel deslizante: los paneles se mueven horizontalmente sin parpadeos. */
@media(min-width:651px){
.reference-panels.carousel-advance .reference-panel{animation:none!important}
.reference-panel{will-change:transform;backface-visibility:hidden;}
.reference-panel.active{box-shadow:inset 0 0 0 2px rgba(0,156,244,.45)}
}
.brand-logo{filter:none!important;mix-blend-mode:normal!important;object-fit:contain;}

/* Carrusel de una sola diapositiva, ancho completo. */
.reference-panels{display:block!important;position:relative;min-height:480px;overflow:hidden}
.reference-panel{position:absolute!important;inset:0;width:100%;height:100%;min-height:480px;padding:65px max(7vw,55px) 65px!important;display:flex!important;align-items:center;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(100%);transition:transform .75s cubic-bezier(.22,.61,.36,1),opacity .75s ease,visibility 0s linear .75s;order:unset!important;border:0!important;background-position:center center!important;background-size:cover!important;box-shadow:none!important}
.reference-panel.active{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0);transition:transform .75s cubic-bezier(.22,.61,.36,1),opacity .75s ease,visibility 0s}
.reference-panel.slide-out-left{visibility:visible;opacity:0;transform:translateX(-100%);transition:transform .75s cubic-bezier(.22,.61,.36,1),opacity .75s ease,visibility 0s linear .75s}
.reference-panel.slide-out-right{visibility:visible;opacity:0;transform:translateX(100%);transition:transform .75s cubic-bezier(.22,.61,.36,1),opacity .75s ease,visibility 0s linear .75s}
.reference-panel-content{max-width:590px}.reference-panel h1,.reference-panel h2{font-size:clamp(37px,4.4vw,65px)}.reference-panel ul{font-size:clamp(13px,1.1vw,16px)}
@media(max-width:650px){.reference-panels{min-height:480px}.reference-panel{min-height:480px;padding:45px 48px 65px!important}.reference-panel h1,.reference-panel h2{font-size:clamp(32px,8vw,45px)}}
@media(prefers-reduced-motion:reduce){.reference-panel,.reference-panel.active,.reference-panel.slide-out-left,.reference-panel.slide-out-right{transition:none!important}}
/* Identidad visual: logotipo en todos los espacios antes reservados a ST */
.brand-logo{width:54px;height:54px;object-fit:contain;flex-shrink:0;background:transparent}
.about-square .identity-logo{width:155px;height:155px;object-fit:contain;max-width:90%}
.portfolio-placeholder .identity-logo{width:82px;height:82px;object-fit:contain;max-width:85%}

/* Portafolio corporativo: tarjetas alineadas, responsive y sin recortes */
.portfolio-section{background:#f5f8fd;padding:76px 0 86px;color:#122b4b}
.portfolio-section .section-heading{margin-bottom:30px}
.portfolio-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.portfolio-card{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;border:1px solid #e1e9f3;border-radius:15px;background:#fff;box-shadow:0 9px 25px rgba(16,49,88,.08);transition:transform .25s,box-shadow .25s}
.portfolio-card:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(16,49,88,.14)}
.portfolio-card>img,.portfolio-card>.portfolio-placeholder{display:block;width:100%;height:215px;aspect-ratio:16/10;object-fit:cover;object-position:center;background:#eaf1f9;flex-shrink:0}
.portfolio-placeholder{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:18px;background:linear-gradient(145deg,#edf5ff,#dceafd)}
.portfolio-placeholder .identity-logo{width:110px!important;height:110px!important;max-width:70%;object-fit:contain}
.portfolio-placeholder small{font-size:11px;font-weight:700;letter-spacing:.07em;color:#385b7c;text-align:center}
.portfolio-content{display:flex;flex-direction:column;flex:1;gap:10px;padding:22px!important}
.portfolio-content .project-category{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:#0878e8}
.portfolio-content h3{font-size:19px;line-height:1.3;margin:0;color:#12355d;overflow-wrap:anywhere}
.portfolio-content p{font-size:13px;line-height:1.65;color:#526982;margin:0 0 10px;overflow-wrap:anywhere;flex:1}
.portfolio-content .text-link{margin-top:auto;color:#006ee5;font-weight:750}
.portfolio-empty{grid-column:1/-1;text-align:center;padding:50px 24px;border:1px dashed #bdd4ee;border-radius:14px;background:#fff}
.portfolio-empty h3{margin:0 0 8px;color:#12355d}.portfolio-empty p{margin:0;color:#526982}
@media(max-width:960px){.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.portfolio-section{padding:52px 0}.portfolio-grid{grid-template-columns:1fr;gap:18px}.portfolio-card>img,.portfolio-card>.portfolio-placeholder{height:220px}.portfolio-content{padding:19px!important}}

/* Formulario de contacto mejorado */
.contact-panel-refined{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:48px;padding:48px;background:linear-gradient(135deg,#f2f7ff,#fff)!important;border:1px solid #d9e6f7;box-shadow:0 20px 55px #0b37610c}
.contact-intro h2{color:#092b57}.contact-intro>p{font-size:15px;line-height:1.8;color:#536a88;margin:20px 0}.contact-highlights{display:grid;gap:13px;margin-top:30px;color:#125eb7;font-size:14px;font-weight:650}
.contact-form-refined{display:block;width:100%;min-width:0;padding:30px;background:#fff;border:1px solid #e0e9f5;border-radius:18px;box-shadow:0 12px 32px #0b37610c}
.contact-form-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:23px}.contact-form-heading strong{color:#0c3266;font-size:19px}.contact-form-heading span{font-size:11px;color:#64748b}
.contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:19px 15px}.contact-fields label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#173d6e}.contact-fields .contact-field-wide{grid-column:1/-1}
.contact-fields input,.contact-fields select,.contact-fields textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d5e1ef;border-radius:10px;background:#f9fbff;color:#142c4b;padding:13px 14px;font:inherit;font-size:14px;line-height:1.4;outline:none;transition:border-color .2s,box-shadow .2s}.contact-fields textarea{resize:vertical;min-height:130px}.contact-fields input:focus,.contact-fields select:focus,.contact-fields textarea:focus{border-color:#087af1;box-shadow:0 0 0 3px #087af122;background:#fff}
.contact-submit{width:100%;margin-top:22px;display:flex;justify-content:center;align-items:center;gap:15px;padding:15px}.contact-privacy{margin:12px 0 0!important;text-align:center;color:#667c97!important;font-size:11px!important}.contact-feedback{padding:15px 17px;border-radius:11px;margin-top:24px;font-size:13px;line-height:1.6}.contact-success{background:#e8f9f0;color:#116c43;border:1px solid #a4e6c1}.contact-error{background:#fff1f1;color:#a42a2a;border:1px solid #fac6c6}
.hp-field{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}
@media(max-width:850px){.contact-panel-refined{grid-template-columns:1fr;gap:28px;padding:28px}}@media(max-width:520px){.contact-panel-refined{padding:18px}.contact-form-refined{padding:20px}.contact-fields{grid-template-columns:1fr}.contact-form-heading{display:block}.contact-form-heading span{display:block;margin-top:6px}}

/* Accesibilidad: contraste legible en fondos blancos y claros. */
.services-section,.portfolio-section,.contact-section,.contact-panel-refined{color:#183453;}
.services-section .section-heading>p,.portfolio-section .section-heading>p,.contact-section .section-heading>p{color:#3f5875!important;}
.services-section .eyebrow,.portfolio-section .eyebrow,.contact-section .eyebrow{color:#075fbd!important;}
.services-section h2,.portfolio-section h2,.contact-section h2{color:#102f53!important;}
.services-section .service-card,.portfolio-section .portfolio-card{color:#173453;}
.services-section .service-card h3,.portfolio-section .portfolio-card h3{color:#0b4d97;}
.services-section .service-card p,.portfolio-section .portfolio-card p{color:#3f5875;}
.portfolio-section .project-category{color:#075fbd;}
.contact-panel-refined .contact-intro,.contact-panel-refined .contact-intro h2{color:#102f53!important;}
.contact-panel-refined .contact-intro p,.contact-panel-refined .contact-privacy{color:#425d79!important;}
.contact-panel-refined .contact-highlights{color:#1253a1;}
.contact-form-refined label,.contact-form-refined strong{color:#173d6e!important;}
.contact-form-refined input,.contact-form-refined select,.contact-form-refined textarea{color:#142c4b!important;background:#f9fbff!important;}
.contact-form-refined input::placeholder,.contact-form-refined textarea::placeholder{color:#65758b;opacity:1;}
body.light .about-section,body.light .about-section h2,body.light .about-section .about-copy{color:#102f53;}
body.light .about-section p,body.light .about-section .about-points span{color:#425d79;}
/* El texto blanco del carrusel permanece blanco sobre sus imágenes oscuras. */
.reference-hero .reference-panel,.reference-hero .reference-panel h1,.reference-hero .reference-panel h2,.reference-hero .reference-panel li{color:#fff;}

/* Carrusel de ancho completo: solo una imagen visible */
.reference-hero .reference-panels{display:block!important;position:relative!important;width:100%;height:auto;min-height:0!important;aspect-ratio:1648/928;overflow:hidden;background:#eaf2fb;isolation:isolate}
.reference-hero .reference-panel{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;box-sizing:border-box;display:flex!important;align-items:center;opacity:0;visibility:hidden;pointer-events:none;transform:translateX(100%);transition:transform .7s ease,opacity .7s ease,visibility 0s linear .7s;background-image:var(--panel-image);background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important;border:0!important;box-shadow:none!important}
.reference-hero .reference-panel.active{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(0);transition:transform .7s ease,opacity .7s ease,visibility 0s}
.reference-hero .reference-panel.slide-out-left{visibility:visible;transform:translateX(-100%);opacity:0}
.reference-hero .reference-panel.slide-out-right{visibility:visible;transform:translateX(100%);opacity:0}
.reference-hero .reference-panel.panel-new-first{padding:0!important;background-size:contain!important;background-color:#eaf2fb!important}
.reference-hero .panel-new-first::before{display:none!important}
.reference-hero .hero-carousel-arrow,.reference-hero .hero-carousel-dots{z-index:5}
@media(max-width:650px){
.reference-hero .reference-panels{aspect-ratio:4/3!important;min-height:0!important}
.reference-hero .reference-panel{padding:20px 30px 45px!important}
.reference-hero .reference-panel.panel-new-first{background-size:contain!important}
.reference-hero .reference-panel-content{max-width:85%}
.reference-hero .reference-panel h2{font-size:clamp(22px,6vw,35px)}
.reference-hero .reference-panel li{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.reference-hero .reference-panel{transition:none!important}}

/* Lectura cómoda en escritorio y celular. Mantener el zoom del navegador. */
body{font-size:17px;line-height:1.7}
.brand-name strong{font-size:17px}
.brand-name small{font-size:14px}
.main-nav a{font-size:16px}
.eyebrow{font-size:13px;letter-spacing:.08em}
.section-heading>p,.service-card p,.about-copy>p,.contact-panel p,
.portfolio-content p,.portfolio-empty p{font-size:17px;line-height:1.7}
.service-card h3,.portfolio-content h3{font-size:21px;line-height:1.3}
.about-points div,.contact-highlights{font-size:16px}
.text-link,.btn,.panel-button{font-size:16px;min-height:44px}
.hero-benefits strong,.hero-benefits small{font-size:15px;line-height:1.45}
.footer-content strong{font-size:17px}
.footer-content p,.footer-contact,.copyright{font-size:15px;line-height:1.65}
.whatsapp-float,.whatsapp-label strong{font-size:15px}
.reference-panel .panel-tagline{font-size:clamp(16px,1.4vw,19px);line-height:1.5}
.reference-panel ul{font-size:clamp(16px,1.35vw,18px);line-height:1.5;gap:9px}
.reference-panel-content{max-width:560px}
.contact-intro>p,.contact-fields label,.contact-form-heading span,
.contact-privacy,.contact-feedback{font-size:16px!important;line-height:1.65}
.contact-fields input,.contact-fields select,.contact-fields textarea{font-size:16px;line-height:1.5}
.portfolio-content .project-category{font-size:14px}
.contact-form-refined input::placeholder,.contact-form-refined textarea::placeholder{color:#52657c}
.panel-first-live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1050px) and (min-width:761px){.main-nav a{font-size:14px;padding:8px}.brand-name strong{font-size:15px}}
@media(max-width:760px){
 .brand-name strong{font-size:14px}.brand-name small{font-size:12px}
 .main-nav a{font-size:17px}
 .hero-benefits strong,.hero-benefits small{font-size:15px}
 .section-heading>p,.service-card p,.about-copy>p,.contact-panel p,.portfolio-content p{font-size:16px}
 .reference-hero .reference-panels{aspect-ratio:auto!important;min-height:500px!important}
 .reference-hero .reference-panel{min-height:500px!important;padding:32px 42px 58px!important}
 .reference-hero .reference-panel h2{font-size:clamp(30px,8vw,42px)}
 .reference-hero .reference-panel li{font-size:16px;line-height:1.45}
 .reference-hero .reference-panel .panel-tagline{font-size:17px}
 .reference-hero .reference-panel-content{max-width:100%}
 .reference-hero .reference-panel.panel-new-first{padding:32px 42px 58px!important;background-size:cover!important;background-position:67% center!important}
 .reference-hero .reference-panel.panel-new-first::before{display:block!important;inset:0;background:linear-gradient(90deg,rgba(2,20,43,.94),rgba(2,20,43,.62))}
 .panel-first-live{position:relative;z-index:2;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;border:0;max-width:360px;color:#fff}
 .panel-first-live h2{font-size:clamp(29px,8vw,42px);line-height:1.15;margin:0 0 15px;color:#fff}
 .panel-first-live p{font-size:18px;line-height:1.55;margin:0 0 22px;color:#fff}
 .panel-first-live .panel-button{font-size:16px;background:#075fbd}
}
@media(max-width:380px){.reference-hero .reference-panels,.reference-hero .reference-panel{min-height:560px!important}}

/* Carrusel compacto: fotografía contenida y mensaje en texto legible. */
.reference-hero{padding:18px 0 0;background:#f4f7fb}
.reference-hero .reference-panels{
 width:min(1180px,calc(100% - 48px));height:420px;min-height:0!important;
 aspect-ratio:auto!important;margin:0 auto 26px;border-radius:22px;
 background:#071b34;box-shadow:0 18px 45px rgba(13,48,88,.15)
}
.reference-hero .reference-panel,
.reference-hero .reference-panel.panel-new-first{
 height:100%!important;min-height:0!important;padding:38px 54px!important;
 background-image:none!important;background-color:#071b34!important;
 align-items:center!important
}
.reference-hero .reference-panel::after{
 content:"";position:absolute;inset:0 0 0 auto;width:68%;z-index:0;
 background-image:var(--panel-image);background-repeat:no-repeat;
 background-position:right center;background-size:cover;
 mask-image:linear-gradient(to right,transparent,#000 24%);
 -webkit-mask-image:linear-gradient(to right,transparent,#000 24%)
}
.reference-hero .reference-panel.panel-new-first::after{background-size:auto 150%}
.reference-hero .reference-panel::before,
.reference-hero .reference-panel.panel-new-first::before{
 display:block!important;z-index:1;
 background:linear-gradient(90deg,#061a32 0%,rgba(6,26,50,.97) 31%,rgba(6,26,50,.65) 57%,rgba(6,26,50,.08) 100%)
}
.reference-hero .reference-panel-content,.reference-hero .panel-first-live{
 position:relative;z-index:2;max-width:49%;width:100%;color:#fff
}
.reference-hero .panel-first-live{
 height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal;border:0
}
.reference-hero .reference-panel h2,.reference-hero .panel-first-live h2{
 font-size:clamp(31px,3.2vw,45px);line-height:1.13;margin:0 0 13px;color:#fff
}
.reference-hero .panel-first-live p{font-size:18px;line-height:1.55;margin:0 0 22px;color:#e9f3fd}
.reference-hero .panel-tagline{font-size:17px;line-height:1.45;margin-bottom:12px}
.reference-hero .reference-panel ul{font-size:15px;line-height:1.4;gap:5px;margin-bottom:16px}
.reference-hero .panel-button{font-size:15px;min-height:43px;padding:9px 15px}
.reference-hero .hero-carousel-arrow{
 top:auto;bottom:14px;transform:none;width:40px;height:40px;font-size:27px
}
.reference-hero .hero-carousel-arrow:hover{transform:scale(1.05)}
.reference-hero .hero-carousel-arrow.prev{left:auto;right:68px}
.reference-hero .hero-carousel-arrow.next{right:16px}
.reference-hero .hero-carousel-dots{bottom:18px}
@media(max-width:760px){
 .reference-hero{padding-top:12px}
 .reference-hero .reference-panels{width:calc(100% - 28px);height:420px;min-height:0!important;margin-bottom:16px;border-radius:16px}
 .reference-hero .reference-panel,.reference-hero .reference-panel.panel-new-first{
  min-height:0!important;padding:26px 25px 56px!important
 }
 .reference-hero .reference-panel::after{width:100%;opacity:.5;background-size:cover!important;background-position:70% center!important;mask-image:none;-webkit-mask-image:none}
 .reference-hero .reference-panel::before,.reference-hero .reference-panel.panel-new-first::before{
  background:linear-gradient(90deg,rgba(5,21,41,.94),rgba(5,21,41,.75))
 }
 .reference-hero .reference-panel-content,.reference-hero .panel-first-live{max-width:100%}
 .reference-hero .reference-panel h2,.reference-hero .panel-first-live h2{font-size:clamp(28px,7vw,35px);line-height:1.16}
 .reference-hero .reference-panel ul{font-size:15px;gap:5px;line-height:1.37}
 .reference-hero .panel-tagline{font-size:16px}
 .reference-hero .panel-first-live p{font-size:17px}
 .reference-hero .hero-carousel-arrow{bottom:11px;width:36px;height:36px}
 .reference-hero .hero-carousel-arrow.prev{right:58px;left:auto}
 .reference-hero .hero-carousel-arrow.next{right:12px}
 .reference-hero .hero-carousel-dots{bottom:15px;left:25px;transform:none}
}
@media(max-width:380px){.reference-hero .reference-panels{height:455px;min-height:0!important}}

/* Pie de página: jerarquía clara y texto secundario más discreto. */
.site-footer{padding:48px 0 20px;background:#081728;color:#f1f6fd;border-top:3px solid #1489df}
.site-footer .footer-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(140px,.65fr) minmax(0,1fr);gap:clamp(28px,5vw,75px);align-items:start}
.site-footer .footer-kicker{display:block;margin-bottom:11px;color:#72c7f5;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.site-footer .footer-brand strong{display:block;max-width:390px;color:#fff;font-size:18px;line-height:1.38;letter-spacing:-.01em}
.site-footer .footer-content p{margin:12px 0 0;color:#adbed0;font-size:14px;line-height:1.65}
.site-footer .footer-nav,.site-footer .footer-contact{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
.site-footer .footer-nav h2,.site-footer .footer-contact h2{margin:0 0 9px;color:#f2f7fd;font-size:14px;font-weight:750;line-height:1.4}
.site-footer .footer-nav a,.site-footer .footer-contact a{color:#b8c8d9;font-size:14px;line-height:1.45;text-decoration:none;overflow-wrap:anywhere}
.site-footer .footer-nav a:hover,.site-footer .footer-contact a:hover{color:#8ed7ff;text-decoration:underline;text-underline-offset:4px}
.site-footer a:focus-visible{outline:2px solid #8ed7ff;outline-offset:4px;border-radius:3px}
.site-footer .footer-contact .footer-location{color:#e6f1fa;font-weight:650}
.site-footer .footer-contact p{margin:0 0 5px}
.site-footer .copyright{border-top:1px solid rgba(189,212,235,.17);margin-top:38px;padding-top:17px;color:#99aec4;font-size:12px;line-height:1.5}
@media(max-width:760px){
 .site-footer{padding-top:38px}
 .site-footer .footer-content{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}
 .site-footer .footer-brand{grid-column:1/-1}
 .site-footer .copyright{margin-top:30px}
}
@media(max-width:480px){
 .site-footer .footer-content{grid-template-columns:1fr;gap:28px}
 .site-footer .footer-brand{grid-column:auto}
 .site-footer .footer-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
 .site-footer .footer-nav h2{grid-column:1/-1}
}

/* Selector de tema compartido con el panel administrativo. */
.theme-toggle{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #c9d8e9;border-radius:12px;background:#fff;color:#123b67;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.theme-toggle:hover{background:#eaf4ff;border-color:#2682cf;transform:translateY(-1px)}
.theme-toggle:focus-visible{outline:3px solid #399be6;outline-offset:3px}
.theme-toggle .theme-icon{font-size:24px;line-height:1}
@media(max-width:900px){
 .site-header .nav-wrap{min-height:72px}
 .site-header .menu-toggle{display:block;order:3;flex:0 0 44px;width:44px;height:44px}
 .site-header .theme-toggle{order:2}
 .site-header .main-nav{display:none;position:absolute;left:16px;right:16px;top:72px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);flex-direction:column;align-items:stretch;gap:0}
 .site-header .main-nav.open{display:flex}
 .site-header .main-nav a{font-size:16px;padding:11px 13px}
}
@media(max-width:480px){.site-header .brand-logo{width:46px;height:46px}.site-header .brand-name small{display:none}.site-header .brand-name strong{font-size:12px}.site-header .nav-wrap{gap:7px}.site-header .brand{min-width:0}}

/* Tema oscuro público; el tema claro existente queda como opción inicial. */
html.theme-dark{color-scheme:dark}
html.theme-dark body{--bg:#091421;--surface:#12263b;--surface2:#1a344d;--text:#edf5ff;--muted:#becddd;--line:rgba(180,208,235,.22);--blue:#78bfff;--cyan:#77e2e7;--header:rgba(8,23,40,.96);background:#091421;color:#edf5ff}
html.theme-dark body main{background:linear-gradient(180deg,#091421,#0d2134 48%,#091421)}
html.theme-dark .site-header{background:#091b2f;border-bottom:1px solid #274159;box-shadow:0 6px 25px #0004}
html.theme-dark .site-header .brand-name strong,html.theme-dark .site-header .brand-name small{color:#edf5ff!important}
html.theme-dark .site-header .brand-logo{background:#f3f7fb;border-radius:8px;padding:2px}
html.theme-dark .main-nav a{color:#d4e3f3}
html.theme-dark .main-nav a:hover,html.theme-dark .main-nav a:focus-visible{color:#fff;background:#193b5d}
html.theme-dark .theme-toggle{background:#173550;border-color:#426887;color:#f8d67e}
html.theme-dark .theme-toggle:hover{background:#234967}
html.theme-dark .menu-toggle{background:#173550;border-color:#426887;color:#f4f8ff}
html.theme-dark .reference-hero{background:#091421}
html.theme-dark .reference-hero .hero-benefits{background:#142940;color:#eaf3fc;border-block:1px solid #29435b}
html.theme-dark .reference-hero .benefits-grid>div{border-color:#38536c}
html.theme-dark .reference-hero .benefits-grid small{color:#c0d0e0}
html.theme-dark .services-section,html.theme-dark .portfolio-section,html.theme-dark .about-section,html.theme-dark .contact-section{background:#0c1e30;color:#eef5ff}
html.theme-dark .services-section .section-heading h2,html.theme-dark .portfolio-section .section-heading h2,html.theme-dark .contact-section h2,html.theme-dark .about-section h2{color:#f4f8ff!important}
html.theme-dark .services-section .section-heading>p,html.theme-dark .portfolio-section .section-heading>p,html.theme-dark .contact-section .section-heading>p{color:#c0d0e0!important}
html.theme-dark .services-section .eyebrow,html.theme-dark .portfolio-section .eyebrow,html.theme-dark .contact-section .eyebrow{color:#80caff!important}
html.theme-dark .service-card,html.theme-dark .portfolio-card,html.theme-dark .portfolio-empty{background:#142b42;border-color:#35516a;box-shadow:0 9px 24px #0003;color:#edf5ff}
html.theme-dark .service-card h3,html.theme-dark .portfolio-card h3,html.theme-dark .portfolio-empty h3{color:#a6d5ff}
html.theme-dark .service-card p,html.theme-dark .portfolio-card p,html.theme-dark .portfolio-empty p{color:#c6d5e4}
html.theme-dark .portfolio-content .project-category{color:#84caff}
html.theme-dark .portfolio-placeholder{background:#183b5b}
html.theme-dark .portfolio-placeholder small{color:#d4e5f5}
html.theme-dark .about-copy>p,html.theme-dark .about-points span{color:#c5d5e6}
html.theme-dark .contact-panel-refined{background:linear-gradient(135deg,#112a43,#0b1d31)!important;border-color:#3c5d77;color:#edf5ff;box-shadow:0 18px 45px #0004}
html.theme-dark .contact-panel-refined .contact-intro,html.theme-dark .contact-panel-refined .contact-intro h2{color:#f4f8ff!important}
html.theme-dark .contact-panel-refined .contact-intro p,html.theme-dark .contact-panel-refined .contact-privacy{color:#c8d7e6!important}
html.theme-dark .contact-panel-refined .contact-highlights{color:#9ed8ff}
html.theme-dark .contact-form-refined{background:#162e47;border-color:#41607b;box-shadow:none}
html.theme-dark .contact-form-refined label,html.theme-dark .contact-form-refined strong{color:#e9f4ff!important}
html.theme-dark .contact-form-refined input,html.theme-dark .contact-form-refined select,html.theme-dark .contact-form-refined textarea{background:#0b2034!important;color:#f5f9ff!important;border-color:#526f88}
html.theme-dark .contact-form-refined input::placeholder,html.theme-dark .contact-form-refined textarea::placeholder{color:#b4c6d8}
html.theme-dark .contact-form-heading span{color:#c4d4e4}

/* El catálogo tiene estilos propios dentro de catalogo.php. */
html.theme-dark .catalog-page{background:linear-gradient(180deg,#091421,#10263b);color:#edf5ff}
html.theme-dark .catalog-toolbar h2,html.theme-dark .catalog-card h3,html.theme-dark .catalog-assistance strong{color:#f2f8ff}
html.theme-dark .catalog-eyebrow,html.theme-dark .catalog-category{color:#8ddcff}
html.theme-dark .catalog-count{background:#1d3b56;color:#dbeafb}
html.theme-dark .catalog-search,html.theme-dark .catalog-select-wrap,html.theme-dark .catalog-card,html.theme-dark .catalog-empty{background:#152c43;border-color:#3b5871;box-shadow:none;color:#edf5ff}
html.theme-dark .catalog-search input,html.theme-dark .catalog-select-wrap select{color:#edf5ff}
html.theme-dark .catalog-search input::placeholder{color:#b8cbdd}
html.theme-dark .catalog-select-wrap option{background:#152c43;color:#edf5ff}
html.theme-dark .catalog-photo{background:#213c56}
html.theme-dark .catalog-description,html.theme-dark .catalog-empty p,html.theme-dark .catalog-assistance p{color:#c0d1e1}
html.theme-dark .catalog-price,html.theme-dark .catalog-price-label,html.theme-dark .catalog-price small{color:#e3eef9}
html.theme-dark .catalog-card-bottom{border-color:#3c5870}
html.theme-dark .catalog-assistance{background:#19364e;color:#edf5ff}
html.theme-dark .catalog-action-disabled{background:#294055;color:#d0dbe6!important}
