/* Dronalive — movimiento en todas las páginas del tema (no afecta a la portada nueva) */
@keyframes dlmPan{0%{background-position:50% 35%}100%{background-position:50% 65%}}
@keyframes dlmSheen{0%,55%{transform:translateX(-120%) skewX(-18deg)}100%{transform:translateX(320%) skewX(-18deg)}}
@keyframes dlmUp{from{transform:translateY(26px);filter:blur(6px)}to{transform:none;filter:none}}
@keyframes dlmFlow{to{background-position:-220% 0}}
@keyframes dlmFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes dlmBtn{0%,60%{background-position:160% 0}100%{background-position:-60% 0}}

/* Cabecera con foto: desplazamiento lento + brillo que la cruza + partículas doradas */
body:not(.dl-home) .header-hero{position:relative;overflow:hidden;animation:dlmPan 24s ease-in-out infinite alternate;background-size:cover}
body:not(.dl-home) .header-hero .dlm-sheen{position:absolute;top:-10%;bottom:-10%;left:0;width:30%;pointer-events:none;z-index:1;background:linear-gradient(90deg,transparent,rgba(255,236,190,.16),transparent);animation:dlmSheen 7s ease-in-out infinite}
body:not(.dl-home) .header-hero canvas.dlm-dust{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
body:not(.dl-home) .header-hero__content,body:not(.dl-home) .header-hero > .container{position:relative;z-index:2}
body:not(.dl-home) .header-hero h1,body:not(.dl-home) .header-hero h2,body:not(.dl-home) .header-hero .hp-page__title{animation:dlmUp 1s cubic-bezier(.2,.7,.2,1) both}
body:not(.dl-home) .header-hero p,body:not(.dl-home) .header-hero form{animation:dlmUp 1s cubic-bezier(.2,.7,.2,1) .2s both}

/* Línea dorada animada bajo la cabecera y sobre el pie */
body:not(.dl-home) .site-header::after,body:not(.dl-home) .site-footer::before{content:"";display:block;height:3px;background:linear-gradient(115deg,#9c7425,#d9b057 22%,#fbe7a6 38%,#d4a845 52%,#2f80d0 70%,#d4a845 86%,#b8892f);background-size:220% 100%;animation:dlmFlow 6s linear infinite}

/* Aparición al hacer scroll */
.dlm-pre{opacity:0;transform:translateY(30px) scale(.98)}
.dlm-in{opacity:1;transform:none;transition:opacity .8s ease,transform .9s cubic-bezier(.2,.7,.2,1)}

/* Tarjetas de inmuebles, categorías y agentes */
body:not(.dl-home) .hp-listing,body:not(.dl-home) .hp-vendor,body:not(.dl-home) .hp-listing-category--view-block{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s;will-change:transform}
body:not(.dl-home) .hp-listing:hover,body:not(.dl-home) .hp-vendor:hover,body:not(.dl-home) .hp-listing-category--view-block:hover{box-shadow:0 26px 44px -24px rgba(8,22,42,.55),0 0 0 1px rgba(212,168,69,.45)}
body:not(.dl-home) .hp-listing__image,body:not(.dl-home) .hp-listing-category__image{overflow:hidden}
body:not(.dl-home) .hp-listing__image img,body:not(.dl-home) .hp-listing-category__image img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
body:not(.dl-home) .hp-listing:hover .hp-listing__image img,body:not(.dl-home) .hp-listing-category--view-block:hover img{transform:scale(1.08)}
body:not(.dl-home) .hp-listing__featured-badge,body:not(.dl-home) .hp-listing__verified-badge{animation:dlmFloat 3s ease-in-out infinite}
body:not(.dl-home) .hp-vendor__image img{border-radius:50%;padding:3px;background:linear-gradient(115deg,#9c7425,#fbe7a6,#d4a845,#2f80d0,#d4a845);background-size:220% 100%;animation:dlmFlow 6s linear infinite}

/* Botones con destello */
body:not(.dl-home) .button,body:not(.dl-home) .hp-form__button,body:not(.dl-home) .wp-block-button__link,body:not(.dl-home) input[type=submit],body:not(.dl-home) .wpforms-submit{
  background-image:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.45) 50%,transparent 65%)!important;background-size:250% 100%!important;background-repeat:no-repeat!important;
  animation:dlmBtn 4s ease-in-out infinite;transition:transform .25s,box-shadow .3s}
body:not(.dl-home) .button:hover,body:not(.dl-home) .hp-form__button:hover,body:not(.dl-home) .wp-block-button__link:hover,body:not(.dl-home) input[type=submit]:hover,body:not(.dl-home) .wpforms-submit:hover{transform:translateY(-2px);box-shadow:0 12px 26px -10px rgba(212,168,69,.8)}

/* Menú: subrayado dorado animado */
body:not(.dl-home) .header-navbar__menu a{position:relative}
body:not(.dl-home) .header-navbar__menu > ul > li > a::after{content:"";position:absolute;left:0;right:100%;bottom:-4px;height:2px;background:linear-gradient(90deg,#d4a845,#fbe7a6,#2f80d0);transition:right .3s}
body:not(.dl-home) .header-navbar__menu > ul > li > a:hover::after{right:0}
body:not(.dl-home) .header-logo img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
body:not(.dl-home) .header-logo:hover img{transform:scale(1.04) rotate(-2deg)}

/* Imágenes de contenido: zoom suave al pasar */
body:not(.dl-home) .site-content .wp-block-image{overflow:hidden;border-radius:12px}
body:not(.dl-home) .site-content .wp-block-image img{transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
body:not(.dl-home) .site-content .wp-block-image:hover img{transform:scale(1.05)}

@media (prefers-reduced-motion:reduce){
  body:not(.dl-home) *{animation:none!important}
  .dlm-pre{opacity:1;transform:none}
}

/* === Banner corporativo neón (sustituye la foto de cabecera en todas las páginas interiores) === */
body:not(.dl-home) .header-hero{
  background-color:#040a18 !important;
  background-image:
    radial-gradient(60% 120% at 18% 0%, rgba(30,139,255,.38), transparent 60%),
    radial-gradient(50% 110% at 85% 100%, rgba(63,230,255,.22), transparent 60%),
    radial-gradient(40% 80% at 60% 30%, rgba(242,196,90,.10), transparent 65%),
    linear-gradient(180deg,#050c1e 0%,#03081a 100%) !important;
  background-size:auto !important;background-position:center !important;
  animation:none !important;min-height:240px;display:flex;align-items:center;
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg,transparent,#a77b26 15%,#f6dc8e 50%,#d9a944 85%,transparent) 1;
}
body:not(.dl-home) .header-hero::before{
  content:"DRONALIVE";position:absolute;left:50%;top:50%;transform:translate(-50%,-52%);
  font:800 clamp(64px,13vw,190px)/1 "Sora","Poppins",sans-serif;letter-spacing:.06em;white-space:nowrap;
  color:transparent;-webkit-text-stroke:1.5px rgba(63,230,255,.28);
  text-shadow:0 0 18px rgba(30,139,255,.35),0 0 42px rgba(30,139,255,.18);
  pointer-events:none;z-index:0;animation:dlNeonFlick 6s ease-in-out infinite;
}
body:not(.dl-home) .header-hero::after{
  content:"";position:absolute;left:-10%;right:-10%;bottom:-40%;height:85%;z-index:0;pointer-events:none;
  background-image:linear-gradient(rgba(63,230,255,.22) 1px,transparent 1px),linear-gradient(90deg,rgba(63,230,255,.22) 1px,transparent 1px);
  background-size:46px 46px;transform:perspective(420px) rotateX(62deg);transform-origin:center top;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 35%,#000 70%,transparent);mask-image:linear-gradient(180deg,transparent,#000 35%,#000 70%,transparent);
  animation:dlGridRun 9s linear infinite;
}
body:not(.dl-home) .header-hero__content{width:100%}
body:not(.dl-home) .header-hero h1,body:not(.dl-home) .header-hero .page__title,body:not(.dl-home) .header-hero .hp-page__title{
  color:#fff !important;letter-spacing:.04em;
  text-shadow:0 0 6px rgba(255,255,255,.65),0 0 18px rgba(63,230,255,.75),0 0 38px rgba(30,139,255,.6) !important;
}
body:not(.dl-home) .header-hero h1::after,body:not(.dl-home) .header-hero .page__title::after{
  content:"";display:block;width:84px;height:3px;margin:14px auto 0;border-radius:3px;
  background:linear-gradient(90deg,#a77b26,#f6dc8e 50%,#d9a944);box-shadow:0 0 14px rgba(242,196,90,.65);
}
body:not(.dl-home) .header-hero .dlm-sheen{background:linear-gradient(90deg,transparent,rgba(63,230,255,.10),transparent) !important}
@keyframes dlNeonFlick{0%,100%{opacity:1}46%{opacity:.85}48%{opacity:.55}50%{opacity:.9}52%{opacity:.6}54%{opacity:1}}
@keyframes dlGridRun{from{background-position:0 0,0 0}to{background-position:0 46px,0 0}}
@media (max-width:767px){body:not(.dl-home) .header-hero{min-height:170px}body:not(.dl-home) .header-hero::after{background-size:30px 30px}}
@media (prefers-reduced-motion:reduce){body:not(.dl-home) .header-hero::before,body:not(.dl-home) .header-hero::after{animation:none}}
