/* Softelec · portada, sección #automatizacion — v2.
   La sección entera es una banda a sangre con fondo aurora animado (canvas que inserta ia-home.js).
   Sin cajas: el bloque .iaf deja de ser una tarjeta redondeada y los servicios son una lista con líneas finas
   e íconos sin recuadro. Se carga DESPUÉS de sx.css y motion.css. Todo bajo body.sx .sx-home #automatizacion.
   Sin JS: degradado estático. prefers-reduced-motion: degradado estático, sin movimiento. */

body.sx .sx-home #automatizacion{
  --ixh-gold:#edb45b;--ixh-gold-2:#f3cf94;--ixh-line:rgba(255,255,255,.16);--ixh-e:cubic-bezier(.16,1,.3,1);
  position:relative;isolation:isolate;overflow:hidden;color:#fff;padding:clamp(84px,10vw,144px) 0;
  background:
    radial-gradient(48% 70% at 8% 18%,rgba(70,112,255,.42),rgba(70,112,255,0) 70%),
    radial-gradient(42% 64% at 90% 14%,rgba(124,92,255,.36),rgba(124,92,255,0) 70%),
    radial-gradient(52% 60% at 72% 96%,rgba(18,150,160,.32),rgba(18,150,160,0) 70%),
    radial-gradient(30% 40% at 28% 100%,rgba(237,180,91,.16),rgba(237,180,91,0) 70%),
    linear-gradient(160deg,#0c1838 0%,#081026 100%)}
/* el bloque deja de ser una tarjeta */
body.sx .sx-home #automatizacion .iaf{background:none;border-radius:0;padding:0;overflow:visible;box-shadow:none}
body.sx .sx-home #automatizacion .iaf::before,body.sx .sx-home #automatizacion .iaf::after{display:none}

/* Fondo insertado por ia-home.js */
body.sx .sx-home #automatizacion>.ixh-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
body.sx .sx-home #automatizacion .ixh-bg canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity 1.2s ease}
body.sx .sx-home #automatizacion .ixh-bg.ixh-ready canvas{opacity:1}
body.sx .sx-home #automatizacion .ixh-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 50%,rgba(5,9,24,0) 50%,rgba(5,9,24,.5) 100%)}
body.sx .sx-home #automatizacion .ixh-grain{position:absolute;inset:0;opacity:.08;background-size:180px 180px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E")}
body.sx .sx-home #automatizacion .ixh-grid{position:absolute;inset:-48px;background-image:radial-gradient(rgba(255,255,255,.15) 1px,rgba(255,255,255,0) 1.3px);background-size:24px 24px;
  -webkit-mask-image:radial-gradient(55% 70% at 74% 50%,#000 0%,transparent 78%);mask-image:radial-gradient(55% 70% at 74% 50%,#000 0%,transparent 78%)}

/* Texto */
body.sx .sx-home #automatizacion .iaf .eyebrow{display:inline-flex;align-items:center;gap:10px}
body.sx .sx-home #automatizacion .iaf .eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ixh-gold);box-shadow:0 0 0 4px rgba(237,180,91,.18)}
body.sx .sx-home #automatizacion .iaf .h2{font-size:clamp(32px,3.8vw,54px)}

/* Servicios: lista editorial con líneas finas, íconos sin recuadro */
body.sx .sx-home #automatizacion .iaf-grid{background:none;gap:0 clamp(24px,3vw,44px);border-top:1px solid var(--ixh-line);border-radius:0}
body.sx .sx-home #automatizacion .iaf-grid li{background:none;border-radius:0;padding:24px 0 26px;border-bottom:1px solid var(--ixh-line)}
body.sx .sx-home #automatizacion .iaf-ic{background:none;width:40px;height:40px;margin:0 0 10px -8px;border-radius:50%;color:var(--ixh-gold)}
body.sx .sx-home #automatizacion .iaf-ic .ic{width:26px;height:26px}
body.sx .sx-home #automatizacion .iaf-grid p{color:rgba(255,255,255,.74)!important}

/* Línea de ejemplos que rota */
body.sx .sx-home #automatizacion .ixh-tk{display:flex;flex-direction:column;gap:6px;margin:-8px 0 28px;font-size:13.5px;line-height:1.35;color:rgba(255,255,255,.66)}
body.sx .sx-home #automatizacion .ixh-tk-w{position:relative;display:block;height:24px;overflow:hidden}
body.sx .sx-home #automatizacion .ixh-tk-w>span{position:absolute;left:0;top:0;right:0;display:flex;align-items:center;gap:9px;white-space:nowrap;overflow:hidden;
  font-size:15px;color:#fff;opacity:0;transform:translate3d(0,100%,0)}
body.sx .sx-home #automatizacion .ixh-tk-w>span::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;background:#1f9e8f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
body.sx .sx-home #automatizacion .ixh-tk-w>span.ixh-on{opacity:1;transform:none}

@media (max-width:1068px){
  body.sx .sx-home #automatizacion .iaf{gap:48px}
}
@media (max-width:734px){
  body.sx .sx-home #automatizacion{padding:72px 0}
  body.sx .sx-home #automatizacion .iaf{padding:0}
  body.sx .sx-home #automatizacion .iaf-grid li{padding:18px 0 20px}
  body.sx .sx-home #automatizacion .ixh-grid{display:none}
  body.sx .sx-home #automatizacion .ixh-tk-w{height:42px}
  body.sx .sx-home #automatizacion .ixh-tk-w>span{white-space:normal;align-items:flex-start;font-size:14px}
  body.sx .sx-home #automatizacion .ixh-tk-w>span::before{margin-top:1px}
  body.sx .sx-home #automatizacion .ixh-grain{opacity:.06}
}

@media (prefers-reduced-motion:no-preference){
  html.ixh-m body.sx .sx-home #automatizacion .ixh-tk-w>span{transition:opacity .6s var(--ixh-e),transform .8s var(--ixh-e)}
  html.ixh-m body.sx .sx-home #automatizacion .ixh-tk-w>span.ixh-off{opacity:0;transform:translate3d(0,-100%,0)}
  @keyframes ixh-pan{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(24px,24px,0)}}
  @keyframes ixh-ping{0%{box-shadow:0 0 0 0 rgba(237,180,91,.5)}70%,100%{box-shadow:0 0 0 9px rgba(237,180,91,0)}}
  html.ixh-m body.sx .sx-home #automatizacion .ixh-grid{animation:ixh-pan 14s linear infinite;animation-play-state:paused}
  html.ixh-m body.sx .sx-home #automatizacion .iaf .eyebrow::before{animation:ixh-ping 2.4s ease-out infinite;animation-play-state:paused}
  html.ixh-m body.sx .sx-home #automatizacion.ixh-play .ixh-grid,
  html.ixh-m body.sx .sx-home #automatizacion.ixh-play .iaf .eyebrow::before{animation-play-state:running}
}
@media (prefers-reduced-motion:reduce){
  body.sx .sx-home #automatizacion .ixh-bg canvas{transition:none}
}
