.institution-page{background:#080d10;color:#eef6f7}.institution-hero{min-height:720px;position:relative;display:flex;align-items:flex-end;padding:150px 7vw 90px;overflow:hidden;background:#071014}.institution-hero:before{content:"";position:absolute;inset:0;background:var(--institution-hero) center/cover no-repeat}.institution-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,10,13,.98),rgba(5,10,13,.82) 42%,rgba(5,10,13,.16) 82%),linear-gradient(0deg,#080d10,transparent 42%)}.institution-hero-copy{position:relative;z-index:2;max-width:780px}.institution-hero h1{font-size:clamp(3rem,6vw,5.8rem);line-height:.94;letter-spacing:-.055em;margin:14px 0 24px}.institution-hero p{font-size:1.15rem;max-width:680px;color:#d0dcdf;line-height:1.7}.institution-section{padding:100px 7vw}.institution-section .section-head{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:end;margin-bottom:48px}.institution-section .section-head h2,.institution-copy h2{font-size:clamp(2.35rem,4.8vw,4.5rem);line-height:1;letter-spacing:-.045em;margin:10px 0}.institution-section .section-head>p,.institution-copy>p{color:#a6b7bb;line-height:1.75}.route-page{--institution-hero:url('assets/ruta-maher-hero.png')}.route-intro{background:#eef4f5;color:#14242b}.route-intro .eyebrow{color:#497092}.route-intro .section-head>p{color:#52676f}.route-map{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;padding-top:52px}.route-map:before{content:"";position:absolute;left:2%;right:2%;top:20px;height:3px;background:linear-gradient(90deg,#497092,#3db9c4)}.route-map:after{content:"";position:absolute;top:-7px;left:2%;width:52px;height:52px;background:url('assets/corredor-ruta.png') center/contain no-repeat;animation:journey 7s ease-in-out infinite alternate}@keyframes journey{to{left:calc(98% - 52px)}}.route-step{appearance:none;text-align:left;border:1px solid #cbd7da;background:#fff;padding:24px 18px;min-height:245px;color:#19282f;cursor:pointer;transition:.25s;border-radius:14px}.route-step:hover,.route-step.active{transform:translateY(-7px);background:#0e1a1f;color:#fff;border-color:#3db9c4;box-shadow:0 18px 38px rgba(20,45,56,.18)}.route-step b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#3db9c4;color:#082027}.route-step h3{font-size:1.05rem;margin:22px 0 10px}.route-step p{font-size:.86rem;line-height:1.55;color:#61747c}.route-step:hover p,.route-step.active p{color:#b9c9cc}.route-detail{display:grid;grid-template-columns:.75fr 1.25fr;gap:55px;align-items:center;background:#0d171b}.route-detail-panel{border-left:3px solid #3db9c4;padding:12px 0 12px 32px}.route-detail-panel h2{font-size:clamp(2.4rem,5vw,4.8rem);margin:8px 0}.route-detail-panel p{color:#b6c5c8;line-height:1.75}.criteria-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.criteria-grid article{background:linear-gradient(145deg,#111d22,#0b1317);border:1px solid #24373e;padding:30px;border-radius:16px}.criteria-grid span{font-size:2rem;color:#3db9c4}.criteria-grid h3{margin:18px 0 8px}.criteria-grid p{color:#9fb0b4}.route-final{text-align:center;background:radial-gradient(circle at top,rgba(61,185,196,.18),transparent 55%)}.route-final h2{font-size:clamp(2.7rem,5vw,5rem);max-width:900px;margin:12px auto}.route-final p{max-width:700px;margin:20px auto 30px;color:#acbcc0}.tech-page{--institution-hero:url('assets/tech-deep-oscillation.jpg')}.tech-page .institution-hero:before{background-position:70% center}.tech-philosophy{background:#eef4f5;color:#14242b}.tech-philosophy .eyebrow{color:#497092}.tech-philosophy .section-head>p{color:#52676f}.technology-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.technology-card{min-height:520px;position:relative;display:flex;align-items:flex-end;padding:36px;overflow:hidden;border:1px solid #263a40;border-radius:18px;isolation:isolate}.technology-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,10,13,.97),rgba(5,10,13,.08) 72%),var(--img) center/cover no-repeat;z-index:-2;transition:transform .5s}.technology-card:after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(61,185,196,.13),transparent 45%);z-index:-1}.technology-card:hover:before{transform:scale(1.04)}.technology-card span{color:#3db9c4;font-size:.75rem;font-weight:900;letter-spacing:.14em}.technology-card h2{font-size:2rem;margin:8px 0}.technology-card p{color:#b5c4c7;max-width:560px}.tech-rule{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#0c1519}.tech-rule article{padding:45px;border:1px solid #263940;border-radius:18px}.tech-rule h3{font-size:1.7rem}.tech-rule p{color:#a8b8bc}.about-page{--institution-hero:url('assets/fachada-maher.png')}.about-page .institution-hero:before{background-position:center}.about-story{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}.about-number{font-size:clamp(6rem,15vw,13rem);font-weight:950;line-height:.8;color:#3db9c4;letter-spacing:-.08em}.about-values{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.about-values article{padding:30px;border:1px solid #263940;background:#0d171b;border-radius:16px}.about-values h3{color:#3db9c4}.about-values p{color:#9eafb3}.team-directory{background:#eef4f5;color:#18272e}.team-directory .eyebrow{color:#497092}.team-directory .section-head>p{color:#52676f}.team-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.team-group{background:#fff;border:1px solid #ccd8dc;border-radius:18px;padding:30px}.team-group:nth-child(2){background:#497092;color:white}.team-group h3{font-size:1.55rem;margin-top:0}.team-group ul{list-style:none;padding:0;margin:20px 0 0}.team-group li{padding:12px 0;border-top:1px solid rgba(100,125,135,.23)}.team-group small{color:#3db9c4;font-weight:800}.facilities{display:grid;grid-template-columns:1.1fr .9fr;gap:0;background:#0d171b}.facilities-photo{min-height:650px;background:url('assets/fachada-maher.png') center/cover no-repeat}.facilities .institution-copy{padding:80px 7vw;align-self:center}.contact-page{--institution-hero:url('assets/fachada-maher.png')}.contact-page .institution-hero:before{background-position:center}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.contact-card{border:1px solid #273a40;background:#0d171b;padding:38px;border-radius:18px}.contact-card h2{font-size:2rem}.contact-card p,.contact-card li{color:#afbec2}.contact-card ul{list-style:none;padding:0}.contact-card li{padding:10px 0;border-bottom:1px solid #24373d}.direction-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.map-panel{min-height:560px;background:linear-gradient(90deg,rgba(5,10,13,.94),rgba(5,10,13,.35)),url('assets/fachada-maher.png') center/cover no-repeat;display:flex;align-items:center;padding:7vw}.map-panel>div{max-width:580px}.map-panel h2{font-size:clamp(2.5rem,5vw,4.8rem);line-height:1}.map-panel p{color:#c3d0d3}.contact-note{background:#3db9c4;color:#082027;text-align:center}.contact-note h2{font-size:clamp(2.5rem,5vw,4.5rem);margin:10px auto;max-width:850px}.contact-note p{max-width:670px;margin:20px auto}.contact-note .button{background:#08151a;color:#fff}
@media(max-width:1000px){.route-map{grid-template-columns:repeat(2,1fr)}.route-map:before,.route-map:after{display:none}.route-detail,.about-story,.facilities,.contact-grid{grid-template-columns:1fr}.technology-grid,.tech-rule{grid-template-columns:1fr}.criteria-grid,.about-values,.team-groups{grid-template-columns:1fr 1fr}.facilities-photo{min-height:480px}}
@media(max-width:650px){.institution-hero{min-height:690px;padding:130px 22px 70px}.institution-hero h1{font-size:3rem}.institution-hero:after{background:linear-gradient(0deg,rgba(5,10,13,.98),rgba(5,10,13,.62) 70%,rgba(5,10,13,.25))}.institution-section{padding:75px 22px}.institution-section .section-head{grid-template-columns:1fr;gap:16px}.route-map,.criteria-grid,.about-values,.team-groups{grid-template-columns:1fr}.route-step{min-height:auto}.route-detail{gap:25px}.technology-grid{grid-template-columns:1fr}.technology-card{min-height:420px;padding:26px}.about-story{gap:35px}.facilities-photo{min-height:380px}.direction-actions .button{width:100%}.map-panel{min-height:600px;padding:70px 22px}}

/* Ruta MaHer v2: recorrido escalonado, completo y navegable */
.route-page{--institution-hero:url('assets/ruta-maher-hero-v2.webp')}
.route-intro .section-head{display:block;max-width:1050px;margin-bottom:64px}
.route-intro .section-head>p{max-width:900px;margin:18px 0 0;font-size:1rem}
.route-map{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;min-height:500px;padding:36px 0 0;overflow:visible;align-items:start}
.route-map:before{left:4%;right:auto;top:auto;bottom:112px;width:92%;height:4px;transform:rotate(-14deg);transform-origin:left center;border-radius:10px;background:linear-gradient(90deg,#497092,#3db9c4)}
.route-map:after{top:auto;bottom:77px;left:2%;width:54px;height:54px;z-index:3;animation:journey-stairs 8s ease-in-out infinite alternate}
@keyframes journey-stairs{0%{left:2%;bottom:77px}100%{left:calc(98% - 54px);bottom:300px}}
.route-step{min-width:0;min-height:235px;padding:20px 14px;translate:0 var(--step-y);position:relative;z-index:2}
.route-step:nth-child(1){--step-y:210px}.route-step:nth-child(2){--step-y:175px}.route-step:nth-child(3){--step-y:140px}.route-step:nth-child(4){--step-y:105px}.route-step:nth-child(5){--step-y:70px}.route-step:nth-child(6){--step-y:35px}.route-step:nth-child(7){--step-y:0px}
.route-step h3{font-size:.98rem;line-height:1.2;margin:18px 0 9px}.route-step p{font-size:.79rem}
.route-detail{scroll-margin-top:90px;grid-template-columns:.58fr 1.42fr;align-items:start}
.route-detail-panel{outline:none;border-left:0;border:1px solid #2d464f;border-top:4px solid #3db9c4;border-radius:18px;padding:34px;background:linear-gradient(145deg,#111f25,#0a1216);box-shadow:0 24px 60px rgba(0,0,0,.25)}
.route-detail-panel h2{font-size:clamp(2.3rem,4.5vw,4.2rem)}
.route-detail-panel h3{margin:26px 0 10px;color:#3db9c4;font-size:1rem;text-transform:uppercase;letter-spacing:.08em}
.route-detail-panel p,.route-detail-panel li{color:#c4d0d3;line-height:1.72}
.route-detail-panel ul{padding-left:20px}.route-detail-panel li+li{margin-top:9px}
.route-detail-hint{position:sticky;top:110px}.route-detail-hint p{color:#aab9bd;line-height:1.7}

/* Tecnologías interactivas */
.tech-page{--institution-hero:url('assets/tecnologia-evaluacion-hero.webp')}
.tech-page .institution-hero:before{background-position:center}
.technology-card{cursor:pointer;text-align:left;color:inherit;font:inherit}
.technology-card:focus-visible{outline:3px solid #3db9c4;outline-offset:4px}
.technology-card .tech-more{display:inline-flex;margin-top:18px;color:#3db9c4;font-weight:800;font-size:.85rem;letter-spacing:.04em}
.tech-dialog{width:min(760px,calc(100% - 32px));max-height:88vh;overflow:auto;border:1px solid #35515b;border-radius:22px;padding:0;background:#0c171c;color:#eef6f7;box-shadow:0 35px 100px rgba(0,0,0,.65)}
.tech-dialog::backdrop{background:rgba(2,7,9,.82);backdrop-filter:blur(7px)}
.tech-dialog-inner{padding:42px;position:relative}.tech-dialog h2{font-size:clamp(2rem,5vw,3.6rem);margin:7px 0 24px}.tech-dialog h3{color:#3db9c4;font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;margin:24px 0 7px}.tech-dialog p{color:#c0ced1;line-height:1.68;margin:0}.tech-dialog-close{position:absolute;right:20px;top:18px;width:42px;height:42px;border-radius:50%;border:1px solid #35515b;background:#14242b;color:white;font-size:1.4rem;cursor:pointer}.tech-dialog-note{margin-top:28px!important;padding:18px;border-radius:12px;background:rgba(61,185,196,.1);border:1px solid rgba(61,185,196,.28)}

/* Portada institucional de equipo */
.about-page{--institution-hero:url('assets/equipo-maher-hero-v2.webp')}
.about-page .institution-hero:before{background-position:center}

@media(max-width:1000px){.route-map{grid-template-columns:repeat(2,1fr);min-height:auto;padding-top:0}.route-step,.route-step:nth-child(n){translate:0 0;min-height:210px}.route-map:before,.route-map:after{display:none}.route-detail-hint{position:static}.route-detail{grid-template-columns:1fr}.about-page .institution-hero:before{background-position:58% center}}
@media(max-width:650px){.route-intro .section-head{margin-bottom:36px}.route-map{grid-template-columns:1fr}.route-step,.route-step:nth-child(n){min-height:auto}.route-detail-panel{padding:26px 22px}.tech-dialog-inner{padding:34px 22px}.tech-dialog-close{right:14px;top:12px}.tech-page .institution-hero:before{background-position:62% center}.about-page .institution-hero:before{background-position:55% center}}

/* Video de bienvenida del equipo MaHer */
.about-page .institution-hero:before{display:none}
.about-page .institution-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 52%;z-index:0}
.about-page .institution-hero:after{z-index:1}
.about-page .institution-hero-copy{z-index:2}
@media(max-width:650px){
  .about-page .institution-hero{display:block;min-height:0;padding:0 22px 56px}
  .about-page .institution-hero-video{top:92px;right:0;bottom:auto;left:0;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center;background:#080d10}
  .about-page .institution-hero:after{background:linear-gradient(180deg,rgba(8,13,16,.08) 0,rgba(8,13,16,.12) 45%,#080d10 calc(56.25vw + 96px),#080d10 100%)}
  .about-page .institution-hero-copy{padding-top:calc(56.25vw + 122px)}
}

/* Ajuste de proporciones de la Ruta MaHer */
.institution-page .route-intro{display:block!important;grid-template-columns:none!important;padding:72px 3vw 100px}
.route-intro .section-head{width:100%;max-width:1120px;margin:0 0 34px;padding:0}
.route-intro .section-head h2{max-width:900px}
.route-intro .section-head>p{max-width:940px}
.route-map{width:100%;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;min-height:390px;padding:20px 0 0}
.route-step{min-height:178px;padding:17px 16px;border-radius:16px;translate:0 var(--step-y)}
.route-step:nth-child(1){--step-y:168px}.route-step:nth-child(2){--step-y:140px}.route-step:nth-child(3){--step-y:112px}.route-step:nth-child(4){--step-y:84px}.route-step:nth-child(5){--step-y:56px}.route-step:nth-child(6){--step-y:28px}.route-step:nth-child(7){--step-y:0px}
.route-step h3{font-size:clamp(.86rem,1.04vw,1rem);margin:13px 0 7px}.route-step p{font-size:clamp(.76rem,.84vw,.86rem);line-height:1.42}.route-step b{width:34px;height:34px}
.route-map:before{bottom:82px;width:94%;height:6px;transform:rotate(-8.7deg) scaleX(.02);animation:route-line 8s ease-in-out infinite alternate;z-index:5;box-shadow:0 0 0 2px rgba(238,246,247,.72),0 0 16px rgba(61,185,196,.8);pointer-events:none}
.route-map:after{width:82px;height:82px;bottom:40px;animation:journey-stairs-v2 8s ease-in-out infinite alternate;z-index:6;filter:drop-shadow(0 0 6px rgba(255,255,255,.85));pointer-events:none}
@keyframes route-line{0%{transform:rotate(-8.7deg) scaleX(.02)}100%{transform:rotate(-8.7deg) scaleX(1)}}
@keyframes journey-stairs-v2{0%{left:1%;bottom:40px}100%{left:calc(99% - 82px);bottom:212px}}
@media(max-width:1100px) and (min-width:1001px){.institution-page .route-intro{padding-left:2vw;padding-right:2vw}.route-map{gap:7px}.route-step{padding:15px 10px}.route-step p{font-size:.75rem}}
@media(max-width:1000px){.institution-page .route-intro{padding:72px 5vw}.route-map{grid-template-columns:repeat(2,1fr);min-height:auto}.route-step,.route-step:nth-child(n){translate:0 0;min-height:190px}.route-map:before,.route-map:after{display:none}}
@media(max-width:650px){.institution-page .route-intro{padding:68px 22px}.route-map{grid-template-columns:1fr}.route-step,.route-step:nth-child(n){min-height:auto}}

/* Línea de avance despejada: circula por encima de los escalones */
.route-map{min-height:430px;padding-top:110px}
.route-step{min-height:178px}
.route-step:nth-child(1){--step-y:126px}.route-step:nth-child(2){--step-y:105px}.route-step:nth-child(3){--step-y:84px}.route-step:nth-child(4){--step-y:63px}.route-step:nth-child(5){--step-y:42px}.route-step:nth-child(6){--step-y:21px}.route-step:nth-child(7){--step-y:0px}
.route-map:before{top:220px;bottom:auto;transform:rotate(-5.8deg) scaleX(.02);animation:route-line-clear 8s ease-in-out infinite alternate}
.route-map:after{top:138px;bottom:auto;width:82px;height:82px;animation:journey-clear 8s ease-in-out infinite alternate}
@keyframes route-line-clear{0%{transform:rotate(-5.8deg) scaleX(.02)}100%{transform:rotate(-5.8deg) scaleX(1)}}
@keyframes journey-clear{0%{left:1%;top:138px}100%{left:calc(99% - 82px);top:12px}}
@media(max-width:1000px){.route-map{min-height:auto;padding-top:0}.route-step,.route-step:nth-child(n){translate:0 0}.route-map:before,.route-map:after{display:none}}
