﻿/* Figuras ambientales: el guardián de cada sección, fundido en el entorno */
.hero,.trust,#directorio{position:relative;overflow:hidden}
.presencia{position:absolute;top:0;bottom:0;z-index:0;pointer-events:none;
  display:flex;align-items:center;filter:saturate(.92) brightness(.9) contrast(1.04);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 16%,rgba(0,0,0,.8) 42%,#000 64%,#000 100%),
                     linear-gradient(180deg,rgba(0,0,0,.3) 0%,#000 15%,#000 70%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 16%,rgba(0,0,0,.8) 42%,#000 64%,#000 100%),
                     linear-gradient(180deg,rgba(0,0,0,.3) 0%,#000 15%,#000 70%,transparent 100%);
  -webkit-mask-composite:source-in; mask-composite:intersect}
.presencia img{display:block;height:100%;width:auto;max-width:none}
.presencia::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(44% 40% at 74% 40%,rgba(214,152,62,.15),rgba(214,152,62,.04) 46%,transparent 72%)}
.presencia::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(8,7,10,.28),rgba(8,7,10,0) 24%,rgba(8,7,10,0) 62%,rgba(8,7,10,.92))}
.presencia--r{right:clamp(-30px,-1vw,-6px);top:8%;bottom:auto;height:88%;justify-content:flex-end;opacity:.74;filter:brightness(1.08) saturate(1.02) contrast(1.03)}
.presencia--l{left:clamp(-92px,-3vw,-18px);justify-content:flex-start;opacity:.42;transform:scaleX(-1)}
.presencia--trust{right:clamp(-150px,-4.2vw,-28px);opacity:.3;top:-6%;bottom:auto;height:74%}
.presencia--hero-l{left:0;top:7%;bottom:auto;justify-content:flex-start;opacity:.7;transform:none;filter:brightness(1.06) saturate(1.02) contrast(1.04);
  -webkit-mask-image:radial-gradient(62% 60% at 46% 42%,#000 26%,rgba(0,0,0,.7) 54%,rgba(0,0,0,.14) 82%,transparent 100%);
          mask-image:radial-gradient(62% 60% at 46% 42%,#000 26%,rgba(0,0,0,.7) 54%,rgba(0,0,0,.14) 82%,transparent 100%)}
.presencia--hero-l img{height:auto;width:min(62vw,900px);filter:none;
  -webkit-mask-image:linear-gradient(90deg,#000 68%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 10%,#000 86%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 68%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 10%,#000 86%,transparent 100%)}
.hero .wrap,.trust .wrap,#directorio .wrap{position:relative;z-index:2}
@media (min-width:1700px){
  .presencia--r,.presencia--l{opacity:.56}
  .presencia--trust{opacity:.36;height:78%;top:-8%}
  .presencia--hero-l img{width:min(50vw,860px)}
}
@media (max-width:900px){.presencia{display:none}}
@media (prefers-reduced-motion:reduce){.presencia{opacity:.3}}

/* figura integrada: bordes disueltos, humo y partículas */
.presencia--r{opacity:.72;filter:brightness(1) contrast(1.03) saturate(1.02);
  -webkit-mask-image:radial-gradient(64% 78% at 58% 54%,#000 26%,rgba(0,0,0,.88) 44%,rgba(0,0,0,.35) 66%,transparent 84%),
    linear-gradient(180deg,transparent 0%,#000 16%,#000 68%,transparent 100%);
  mask-image:radial-gradient(64% 78% at 58% 54%,#000 26%,rgba(0,0,0,.88) 44%,rgba(0,0,0,.35) 66%,transparent 84%),
    linear-gradient(180deg,transparent 0%,#000 16%,#000 68%,transparent 100%);
  -webkit-mask-composite:source-in;mask-composite:intersect}
.presencia--r::before{background:
  radial-gradient(30% 26% at 68% 30%,rgba(255,178,86,.12),transparent 70%),
  radial-gradient(34% 30% at 50% 62%,rgba(120,80,50,.16),transparent 76%)}
.presencia--r::after{background:
  radial-gradient(58% 64% at 58% 56%,rgba(8,7,10,0) 34%,rgba(8,7,10,.55) 62%,rgba(8,7,10,.94) 84%,#08070a 100%),
  linear-gradient(180deg,rgba(8,7,10,.12),rgba(8,7,10,0) 30%,rgba(8,7,10,0) 60%,rgba(8,7,10,.98) 100%),
  radial-gradient(40% 30% at 60% 76%,rgba(150,116,90,.14),transparent 74%)}
@keyframes figEmbers{
  0%{background-position:0 0,0 0,0 0}
  50%{background-position:3px -8px,-2px -6px,2px -10px}
  100%{background-position:0 0,0 0,0 0}}
@keyframes figEmbers{
  0%{background-position:0 0,0 0,0 0,0 0,0 0,0 0}
  50%{background-position:0 0,0 0,3px -8px,-2px -6px,2px -10px,-3px -7px}
  100%{background-position:0 0,0 0,0 0,0 0,0 0,0 0}}
@media (prefers-reduced-motion:reduce){.presencia--r::after{animation:none}}


/* partículas volando alrededor de la figura */
.fx-particles{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden;
  -webkit-mask-image:radial-gradient(70% 80% at 58% 52%,#000 40%,transparent 86%);
  mask-image:radial-gradient(70% 80% at 58% 52%,#000 40%,transparent 86%)}
.fx-particles i{position:absolute;bottom:6%;width:3px;height:3px;border-radius:50%;
  background:radial-gradient(circle,#ffe9b0,#ff9f2e 60%,rgba(255,120,20,0) 100%);
  box-shadow:0 0 6px rgba(255,170,70,.85);opacity:0;
  animation:partFly var(--d,9s) linear infinite;animation-delay:var(--dl,0s);left:var(--x,50%)}
.fx-particles i:nth-child(1){--x:38%;--d:11s;--dl:0s;width:2px;height:2px}
.fx-particles i:nth-child(2){--x:47%;--d:9s;--dl:1.4s;width:3px;height:3px}
.fx-particles i:nth-child(3){--x:55%;--d:12s;--dl:2.6s;width:2px;height:2px}
.fx-particles i:nth-child(4){--x:63%;--d:10s;--dl:0.7s;width:3px;height:3px}
.fx-particles i:nth-child(5){--x:70%;--d:13s;--dl:3.4s;width:2px;height:2px}
.fx-particles i:nth-child(6){--x:43%;--d:8.6s;--dl:4.6s;width:2px;height:2px}
.fx-particles i:nth-child(7){--x:59%;--d:11.5s;--dl:5.5s;width:3px;height:3px}
.fx-particles i:nth-child(8){--x:34%;--d:12.5s;--dl:6.4s;width:2px;height:2px}
.fx-particles i:nth-child(9){--x:66%;--d:9.4s;--dl:7.2s;width:2px;height:2px}
.fx-particles i:nth-child(10){--x:51%;--d:10.8s;--dl:8.1s;width:3px;height:3px}
@keyframes partFly{
  0%{opacity:0;transform:translate3d(0,0,0) scale(.5)}
  8%{opacity:.9}
  55%{opacity:.65;transform:translate3d(14px,-46vh,0) scale(1)}
  100%{opacity:0;transform:translate3d(-10px,-96vh,0) scale(.4)}}
@media (prefers-reduced-motion:reduce){.fx-particles{display:none}}
