.hero.mg-hero{height:auto;position:relative;background:#21105d;isolation:isolate}
.mg-hero #heroCarousel,.mg-hero .carousel-inner,.mg-hero .carousel-item{height:clamp(490px,40vw,680px)}
.mg-hero .hero-img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 48%;filter:none;opacity:1}
.mg-hero .carousel-item:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(100deg,rgba(38,9,92,.99) 0%,rgba(33,15,125,.97) 28%,rgba(30,26,145,.88) 40%,rgba(30,26,145,.42) 52%,transparent 68%);z-index:1}
.mg-hero .hero-text{position:absolute;z-index:2;left:7.5%;top:50%;transform:translateY(-40%);width:46%;max-width:680px;color:white;text-align:left}
.mg-hero .hero-text h5{font-size:clamp(.65rem,.85vw,.8rem);letter-spacing:.19em;line-height:1.6;text-transform:uppercase;color:#d6c8f1;font-weight:500;margin:0 0 10px}
.mg-hero .hero-text h1{font-size:clamp(2rem,3.6vw,3.65rem);line-height:1.12;font-weight:750;letter-spacing:-.025em;margin:0 0 18px;text-wrap:balance}
.mg-hero .hero-text p{font-size:clamp(.95rem,1.2vw,1.15rem);line-height:1.55;max-width:470px;margin:0 0 22px;color:#fff}
.mg-hero-actions{display:flex;flex-wrap:wrap;gap:12px}.mg-hero-actions a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:44px;padding:11px 20px;border-radius:28px;border:1px solid #d6cef0;color:#fff;text-decoration:none;font-size:.83rem;font-weight:600}.mg-hero-actions .mg-hero-primary{background:#8bdb61;border-color:#8bdb61;color:#153d33}.mg-hero-actions a:hover{background:#ffffff20}.mg-hero-actions .mg-hero-primary:hover{background:#a0e57e}
.mg-hero .logo-untumbes{top:24px;left:2.5%;z-index:4}.mg-hero .logo-untumbes img{width:clamp(160px,20vw,245px);height:auto;opacity:1}.mg-hero .social-top{top:26px;right:3%;z-index:4;gap:14px}.mg-hero .social-top a{display:flex;align-items:center;justify-content:center;width:36px;height:36px;font-size:20px;border-radius:50%;background:#142d4b45}
.mg-hero .carousel-control-prev,.mg-hero .carousel-control-next{top:50%;bottom:auto;transform:translateY(-50%);width:44px;height:44px;border:1px solid #ffffff55;border-radius:50%;background:#1b123e55;opacity:1;z-index:3}.mg-hero .carousel-control-prev{left:1.5%}.mg-hero .carousel-control-next{right:1.5%}.mg-hero .carousel-control-prev-icon,.mg-hero .carousel-control-next-icon{width:20px;height:20px}
.mg-hero .carousel-indicators{bottom:15px;margin-bottom:0;z-index:3;gap:7px}.mg-hero .carousel-indicators button{box-sizing:content-box;width:26px;height:4px;border:0;border-top:12px solid transparent;border-bottom:12px solid transparent;background-clip:padding-box;border-radius:0;margin:0;background-color:#fff;opacity:.5}.mg-hero .carousel-indicators button.active{background-color:#8bdb61;opacity:1}.mg-hero .carousel-item{transition:transform 1.1s ease-in-out}.mg-hero a:focus-visible,.mg-hero button:focus-visible{outline:3px solid #a2eb79;outline-offset:3px}
@media(max-width:767px){.mg-hero #heroCarousel,.mg-hero .carousel-inner,.mg-hero .carousel-item{height:740px}.mg-hero .hero-img{height:57%;object-position:65% center}.mg-hero .carousel-item:after{background:linear-gradient(to bottom,rgba(24,9,71,.38) 0%,transparent 19%,transparent 32%,rgba(34,12,100,.75) 48%,#241069 58%,#291067 100%)}.mg-hero .hero-text{left:7%;top:auto;bottom:64px;transform:none;width:86%;max-width:none}.mg-hero .hero-text h1{font-size:clamp(1.8rem,6vw,2.4rem);margin-bottom:14px}.mg-hero .hero-text h5{font-size:.65rem;margin-bottom:10px}.mg-hero .hero-text p{font-size:.94rem;line-height:1.5;margin-bottom:18px}.mg-hero .logo-untumbes{left:5%;top:18px}.mg-hero .logo-untumbes img{width:165px}.mg-hero .social-top{top:18px;right:4%;gap:5px}.mg-hero .carousel-control-prev,.mg-hero .carousel-control-next{top:27%;width:44px;height:44px}.mg-hero-actions{gap:9px}.mg-hero-actions a{font-size:.77rem;padding:10px 15px}}
@media(prefers-reduced-motion:reduce){.mg-hero .carousel-item{transition:none}}

/* Primera pantalla completa en escritorio, descontando la barra real. */
@media(min-width:992px){.mg-hero #heroCarousel,.mg-hero .carousel-inner,.mg-hero .carousel-item{height:calc(100vh - var(--mg-nav-height,80px));height:calc(100svh - var(--mg-nav-height,80px));min-height:490px}}
.mg-home-link{display:block;color:inherit;text-decoration:none}.mg-home-link:hover{color:inherit}.mg-home-link:focus-visible{outline:3px solid #7142ca;outline-offset:5px}
.mg-hero .social-top a:hover,.mg-hero .social-top a:focus-visible{color:#fff;background:#ffffff66;box-shadow:0 0 0 2px #ffffffaa;transform:translateY(-2px)}
.scroll-top{visibility:hidden;opacity:0;pointer-events:none;z-index:1100}.scroll-top[hidden]{display:none!important}.scroll-top.mg-show-top{visibility:visible;opacity:1;pointer-events:auto}
