/* Neting - Efectos de movimiento y profundidad (solo CSS) */
/* =====================================================================
   EFECTO WOW: movimiento y profundidad (solo CSS, sin JS)
   ===================================================================== */
html { scroll-behavior: smooth; }
::selection { background: var(--nt-gold); color: var(--nt-navy); }
/* Foco visible con buen contraste sobre fondo claro y oscuro: aro navy con halo blanco. */
:focus-visible { outline: 3px solid var(--nt-navy); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }

/* --- Hero: luz dorada de fondo + reticula sutil + entrada orquestada --- */
.nt-home .nt-hero { position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(212, 168, 87, .22), transparent 60%),
    radial-gradient(700px 600px at 70% 110%, rgba(61, 99, 170, .35), transparent 65%),
    linear-gradient(135deg, #07111f 0%, var(--nt-navy) 45%, #14284d 100%); }
.nt-home .nt-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.nt-home .nt-hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -140px; top: -140px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,87,.30), transparent 65%); animation: nt-float 14s ease-in-out infinite alternate; }
@keyframes nt-float { to { transform: translate(260px, 180px) scale(1.25); } }

@keyframes nt-rise { from { opacity: 0; transform: translateY(34px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nt-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nt-ken  { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.02) translate(-1%, 0); } }
@keyframes nt-reveal-img { from { clip-path: polygon(40% 0, 100% 0, 100% 100%, 26% 100%); opacity: 0; } to { clip-path: polygon(14% 0, 100% 0, 88% 100%, 0 100%); opacity: 1; } }

.nt-home .nt-hero h1 { animation: nt-rise .9s cubic-bezier(.2,.7,.2,1) .15s both; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.nt-home .nt-hero .nt-bar { transform-origin: left; animation: nt-draw .9s cubic-bezier(.7,0,.2,1) .55s both; }
.nt-home .nt-hero-text p { animation: nt-rise .9s cubic-bezier(.2,.7,.2,1) .75s both; }
.nt-home .nt-hero .nt-btns { animation: nt-rise .9s cubic-bezier(.2,.7,.2,1) .95s both; }
.nt-home .nt-hero-img { position: relative; overflow: hidden; animation: nt-reveal-img 1.3s cubic-bezier(.7,0,.2,1) .2s both; }
.nt-home .nt-hero-img::before { content: ""; position: absolute; inset: 0; background: inherit; animation: nt-ken 22s ease-out both; }
.nt-home .nt-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,24,48,.55), transparent 45%); }

/* --- Botones: destello al pasar y elevacion --- */
.nt-btn, .btn-primary { position: relative; overflow: hidden; transition: background .25s, color .25s, transform .25s, box-shadow .25s; }
.nt-btn::after, .btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 50%; transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transition: left .6s ease; }
.nt-btn:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(184,144,63,.40); }
.nt-btn:hover::after, .btn-primary:hover::after { left: 130%; }
.container-header .mod-menu > li:last-child > a { transition: transform .25s, box-shadow .25s, background .25s; }
.container-header .mod-menu > li:last-child > a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(184,144,63,.40); }

/* --- Iconos de pilares: anillo que gira + salto --- */
.nt-home .nt-ico { position: relative; transition: transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .4s, background .3s, color .3s; }
.nt-home .nt-ico::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(212,168,87,.65); animation: nt-spin 18s linear infinite; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.nt-home .nt-ico-item:hover .nt-ico { transform: translateY(-8px) scale(1.08); background: var(--nt-navy); color: var(--nt-gold);
  box-shadow: 0 0 0 6px rgba(212,168,87,.15), 0 18px 30px rgba(10,24,48,.25); }

/* --- Tarjetas: zoom de imagen, linea dorada y elevacion mayor --- */
.blog-item, .home-block .mod-articlesnews-horizontal > li { position: relative; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.blog-item::before, .home-block .mod-articlesnews-horizontal > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--nt-gold), var(--nt-gold-dark)); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.blog-item:hover, .home-block .mod-articlesnews-horizontal > li:hover { transform: translateY(-8px); border-color: rgba(212,168,87,.55); box-shadow: 0 24px 44px rgba(10,24,48,.18); }
.blog-item:hover::before, .home-block .mod-articlesnews-horizontal > li:hover::before { transform: scaleX(1); }
.blog-item .item-image, .home-block .newsflash-image { overflow: hidden; }
.blog-item .item-image img, .home-block .newsflash-image img { transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; }
.blog-item:hover .item-image img:not([src$=".svg"]), .home-block:not(.home-emp) li:hover .newsflash-image img { transform: scale(1.09); filter: saturate(1.15); }
.home-emp li:hover .newsflash-image img, .blog-item:hover .item-image img[src$=".svg"] { transform: scale(1.12) rotate(-3deg); }
.blog-item .readmore .btn::after, .home-block p.readmore a::after { display: inline-block; transition: transform .3s; }
.blog-item:hover .readmore .btn::after, .home-block li:hover p.readmore a::after { transform: translateX(6px); }

/* --- Banda gris con fondo vivo y valores que reaccionan --- */
.nt-home .nt-band { background: linear-gradient(180deg, #f7f7f9, #eef0f4); position: relative; overflow: hidden; }
.nt-home .nt-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(212,168,87,.20), transparent 65%); }
.nt-home .nt-values { box-shadow: 0 20px 50px rgba(10,24,48,.10); border-radius: 14px; border-top: 4px solid var(--nt-gold); position: relative; }
.nt-home .nt-values .nt-mini { transition: transform .3s; }
.nt-home .nt-values .nt-mini:hover { transform: translateX(8px); }
.nt-home .nt-values .nt-mini .nt-dot { transition: transform .4s cubic-bezier(.3,1.6,.5,1), background .3s; }
.nt-home .nt-values .nt-mini:hover .nt-dot { transform: scale(1.25) rotate(-12deg); background: var(--nt-gold); color: var(--nt-navy); }

/* --- Llamada final: aurora animada --- */
.nt-home .nt-cta { position: relative; overflow: hidden; isolation: isolate; padding: 5.5rem 1rem;
  background: radial-gradient(700px 360px at 20% 0%, rgba(212,168,87,.28), transparent 60%), radial-gradient(700px 400px at 90% 100%, rgba(61,99,170,.45), transparent 60%), linear-gradient(135deg, #07111f, var(--nt-navy)); }
.nt-home .nt-cta::before { content: ""; position: absolute; inset: -40%; z-index: -1; opacity: .5;
  background: conic-gradient(from 0deg, transparent, rgba(212,168,87,.18), transparent 30%, rgba(91,130,210,.18), transparent 60%); animation: nt-spin 28s linear infinite; }
.nt-home .nt-cta .nt-btn-pill { padding: 1rem 2.4rem; font-size: 1.1rem; animation: nt-pulse 2.8s ease-in-out infinite; }
@keyframes nt-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,87,.55); } 50% { box-shadow: 0 0 0 16px rgba(212,168,87,0); } }

/* --- Cabecera: logo con vida --- */
.container-header .navbar-brand .brand-logo img { transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.container-header .navbar-brand .brand-logo:hover img { transform: rotate(-8deg) scale(1.08); }
.container-header { backdrop-filter: saturate(1.4) blur(10px); background-color: rgba(255,255,255,.92); }

/* --- Pie: enlaces que se desplazan --- */
.container-bottom-a .mod-menu a, .container-bottom-a .foot-blog a { display: inline-block; transition: transform .25s, color .25s; }
.container-bottom-a .mod-menu a:hover, .container-bottom-a .foot-blog a:hover { transform: translateX(6px); }
.container-bottom-a .nt-foot-logo img { transition: transform .6s cubic-bezier(.3,1.6,.5,1); }
.container-bottom-a .nt-foot-logo:hover img { transform: rotate(-10deg) scale(1.1); }

/* --- Scroll: barra de progreso dorada y revelados (solo navegadores con scroll-driven animations) --- */
@supports (animation-timeline: scroll()) {
  body.site::before { content: ""; position: fixed; z-index: 9999; left: 0; top: 0; right: 0; height: 4px; transform-origin: left; transform: scaleX(0);
    background: linear-gradient(90deg, var(--nt-gold-dark), var(--nt-gold), #f3d38b); animation: nt-draw linear both; animation-timeline: scroll(root block); }

  @keyframes nt-in { from { opacity: 0; transform: translateY(60px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes nt-in-l { from { opacity: 0; transform: translateX(-70px); } to { opacity: 1; transform: none; } }
  @keyframes nt-in-r { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
  @keyframes nt-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

  .nt-home .nt-ico-item, .home-block .mod-articlesnews-horizontal > li, .blog-item, .nt-home .nt-cta > * {
    animation: nt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .nt-home .nt-ico-item:nth-child(2), .home-block li:nth-child(2) { animation-range: entry 8% cover 32%; }
  .nt-home .nt-ico-item:nth-child(3), .home-block li:nth-child(3) { animation-range: entry 16% cover 36%; }
  .home-block li:nth-child(4) { animation-range: entry 24% cover 40%; }
  .nt-home .nt-two > div:first-child { animation: nt-in-l linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .nt-home .nt-two > .nt-values { animation: nt-in-r linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .nt-home .nt-sec > h2::after, .nt-home .nt-band h2::after, .card h3.nt-title::after { transform-origin: center; animation: nt-line linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .nt-home .nt-hero-img { clip-path: polygon(14% 0, 100% 0, 88% 100%, 0 100%); }
}
