/* Portada del home (2026-11-17, v2) — según el Manual de Estilo: turquesa, blanco, azul claro, rojo para CTAs */
.hx { background:#F7FBFB; color:#2C3E50; font-family:'Matter SQ Regular','Helvetica Neue',Arial,sans-serif; border-bottom:4px solid #2C3E50; }
.hx-inner { max-width:1240px; margin:0 auto; padding:72px 32px 56px; display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.hx-badge { display:inline-block; background:#E63946; color:#fff; font-size:12px; font-weight:800; letter-spacing:1.5px; text-transform:uppercase; padding:8px 18px; border-radius:20px; }
.hx-h1 { margin:22px 0 18px; font-weight:800; line-height:1.02; color:#2C3E50; }
.hx-l1 { display:block; font-size:clamp(22px,2.4vw,30px); font-weight:700; color:#308A9E; }
.hx-l2 { display:block; font-size:clamp(44px,6vw,76px); letter-spacing:-1px; margin-top:6px; }
.hx-l2 em { font-style:normal; background:linear-gradient(transparent 58%, #4ECDC4 58%, #4ECDC4 88%, transparent 88%); padding:0 4px; }
.hx-sub { font-size:clamp(17px,1.4vw,20px); line-height:1.6; color:#3d4f61; margin:0 0 30px; max-width:560px; }
.hx-ctas { display:flex; flex-wrap:wrap; gap:14px; }
.hx-btn { display:inline-flex; align-items:center; gap:10px; font-weight:800; text-transform:uppercase; font-size:15px; padding:16px 30px; border-radius:8px; text-decoration:none !important; transition:background .2s, transform .2s, box-shadow .2s; }
.hx-btn-1 { background:#E63946; color:#fff !important; box-shadow:0 6px 16px rgba(230,57,70,.28); }
.hx-btn-1:hover { background:#D32735; transform:translateY(-2px); }
.hx-btn-2 { background:#fff; color:#2C3E50 !important; border:2px solid #2C3E50; }
.hx-btn-2:hover { background:#2C3E50; color:#fff !important; }
.hx-servicios { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.hx-card { display:block; background:#fff; border:2px solid #2C3E50; border-radius:12px; padding:22px 20px; color:#2C3E50 !important; text-decoration:none !important; box-shadow:0 2px 8px rgba(0,0,0,.08); transition:transform .2s, box-shadow .2s, background .2s; opacity:0; transform:translateY(16px); animation:hx-in .6s ease forwards; }
.hx-card:nth-child(1){animation-delay:.15s} .hx-card:nth-child(2){animation-delay:.3s} .hx-card:nth-child(3){animation-delay:.45s} .hx-card:nth-child(4){animation-delay:.6s}
.hx-card:hover { transform:translateY(-4px); box-shadow:0 10px 22px rgba(0,0,0,.12); }
.hx-card-t { background:#4ECDC4; } .hx-card-a { background:#A8D8EA; }
.hx-ico { display:flex; width:44px; height:44px; align-items:center; justify-content:center; border-radius:10px; background:#2C3E50; color:#fff; font-size:20px; margin-bottom:14px; }
.hx-card strong { display:block; font-size:19px; font-weight:800; margin-bottom:6px; }
.hx-card span.hx-d { display:block; font-size:14px; line-height:1.5; color:#2C3E50; }
.hx-card .hx-ir { display:inline-block; margin-top:10px; font-weight:800; font-size:14px; color:#E63946; }
@keyframes hx-in { to { opacity:1; transform:none; } }
.hx-banda { background:#4ECDC4; border-top:4px solid #2C3E50; }
.hx-banda-inner { max-width:1240px; margin:0 auto; padding:26px 32px; display:grid; grid-template-columns:repeat(4,auto) 1fr; gap:36px; align-items:center; }
.hx-num { display:block; font-size:clamp(30px,3vw,42px); font-weight:900; color:#2C3E50; line-height:1; }
.hx-lbl { display:block; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1.2px; color:#2C3E50; margin-top:4px; }
.hx-sectores { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.hx-sectores span { background:#fff; border:2px solid #2C3E50; border-radius:20px; padding:5px 12px; font-size:13px; font-weight:700; }
@media (max-width:980px){ .hx-inner{grid-template-columns:1fr; gap:36px; padding:48px 20px 40px} .hx-banda-inner{grid-template-columns:repeat(2,1fr); gap:20px; padding:24px 20px} .hx-sectores{grid-column:1/-1; justify-content:flex-start} }
@media (max-width:560px){ .hx-servicios{grid-template-columns:1fr} .hx-btn{width:100%; justify-content:center} }
@media (prefers-reduced-motion:reduce){ .hx-card{animation:none; opacity:1; transform:none} }
/* Interruptor Humano / Máquina en la portada */
.hx-vista { display:inline-flex; align-items:center; margin:0 0 18px; border:2px solid #2C3E50; border-radius:8px; overflow:hidden; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; font-weight:700; text-decoration:none !important; background:#fff; width:max-content; }
.hx-vista small { padding:7px 10px; color:#5b6b7a; font-size:11px; text-transform:uppercase; letter-spacing:1px; border-right:2px solid #2C3E50; }
.hx-vista span { padding:7px 14px; color:#2C3E50; }
.hx-vista span.on { background:#2C3E50; color:#fff; }
.hx-vista:hover span:last-child { background:#0f1416; color:#4ECDC4; }
.hx-inner > div:first-child { display:flex; flex-direction:column; align-items:flex-start; }
