/*
Theme Name: Medialab Finis Impacta
Description: Laboratorio binacional de innovación educativa UFT + UCAM. Tema independiente sin constructores de pago.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: medialab-finis
*/
:root{--cyan:#00b7eb;--ink:#111;--muted:#565656;--line:#dcdedc;--paper:#fff;--wash:#f3f4f1;--serif:Georgia,'Times New Roman',serif;--sans:Arial,Helvetica,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:105px}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit}img{max-width:100%;height:auto;display:block}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}a,button,input,select{outline-offset:5px}:focus-visible{outline:3px solid #007ca3}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:400;line-height:1.12}h1,h2{font-family:var(--serif);letter-spacing:-.045em}h1{font-size:clamp(44px,5.3vw,82px)}h2{font-size:clamp(34px,3.5vw,54px)}h3{font-size:23px}p+p{margin-top:16px}.wrap{width:min(1280px,calc(100% - 96px));margin:auto}.section{padding-top:104px;padding-bottom:104px;scroll-margin-top:30px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;line-height:1.5}.cyan{color:var(--cyan)}.skip-link{position:fixed;left:20px;top:-100px;background:#fff;padding:12px;z-index:100}.skip-link:focus{top:10px}.institutional{background:#111;color:#fff;font-size:10px;letter-spacing:.09em;padding:10px 0}.institutional .wrap{display:flex;justify-content:space-between}.institutional a{text-decoration:none}.site-header{position:sticky;top:0;background:#fff;z-index:20;border-bottom:1px solid var(--line)}.header-inner{height:96px;display:flex;align-items:center;justify-content:space-between;gap:30px}.site-brand{text-decoration:none;line-height:1}.brand-name{font-size:39px;letter-spacing:-2px;font-weight:700}.brand-dot{color:var(--cyan)}.brand-sub{display:block;letter-spacing:.22em;font-size:10px;margin-top:9px}nav{display:flex;gap:34px}nav a{text-decoration:none;font-size:14px;padding:8px 0;border-bottom:2px solid transparent}nav a:hover{border-color:var(--cyan)}.menu-toggle{display:none;background:none;border:1px solid var(--line);padding:8px 12px}.hero{background:var(--wash);padding:70px 0 64px}.hero-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:64px;align-items:center}.hero .eyebrow{margin-bottom:27px;font-size:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cyan);margin-right:7px}.hero h1{max-width:640px}.hero-intro{max-width:510px;color:#444;font-size:16px;line-height:1.7;margin:25px 0 30px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:38px;padding:16px 22px;font-size:13px;text-decoration:none;font-weight:700;border:1px solid #111}.dark{background:#111;color:#fff}.button:hover{background:var(--cyan);color:#111}.text-link{display:inline-block;font-size:13px;text-underline-offset:6px;font-weight:600}.hero-copy>.text-link{margin:18px 0 0 22px}.hero-visual{min-width:0}.lab-art{aspect-ratio:1/1.02;position:relative;background:#101817;color:white;overflow:hidden;padding:26px;background-image:linear-gradient(#ffffff07 1px,transparent 1px),linear-gradient(90deg,#ffffff07 1px,transparent 1px);background-size:40px 40px}.art-top,.art-bottom{display:flex;justify-content:space-between;position:absolute;left:25px;right:25px;z-index:3;font-size:9px;letter-spacing:.12em}.art-top{top:25px}.art-bottom{bottom:25px;align-items:center}.art-bottom>span:last-child{font-size:35px;color:var(--cyan)}.orbit{position:absolute;width:80%;height:80%;border:1px solid #00b7eb66;border-radius:50%;top:10%;left:10%;transform:rotate(-40deg) scaleX(.55)}.orbit-two{transform:rotate(45deg) scaleX(.62);border-color:#ffffff25}.art-center{position:absolute;left:12%;top:30%;font:clamp(28px,3.8vw,59px)/1.08 var(--serif);letter-spacing:-.04em;z-index:2}.art-center>span{display:block}.art-center>span:nth-child(2){color:var(--cyan);font-style:italic}.art-node{position:absolute;z-index:4;border-radius:50%;width:72px;height:72px;border:1px solid #00b7eb;background:#0e2425;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:10px;letter-spacing:.1em}.art-node span{font-size:8px;color:#a6bfbe}.node-chile{left:8%;bottom:17%}.node-spain{right:9%;top:17%}.visual-caption{display:flex;justify-content:space-between;font-size:10px;padding:13px 0;color:#666}.hero-photo{width:100%;aspect-ratio:1/1.02;object-fit:cover}.project-strip{border-block:1px solid var(--line)}.project-strip .wrap{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:66px;font-size:11px}.project-strip span:first-child{font-weight:700;letter-spacing:.12em;font-size:10px}.project-strip a{text-decoration:none;font-weight:700}.project-section{display:grid;grid-template-columns:1fr 1fr;gap:90px}.section .eyebrow{margin-bottom:21px}.section-lead{margin-top:26px;color:var(--muted);font-size:19px;max-width:410px}.project-description>p{font-size:16px;color:#444;line-height:1.9}.note{display:flex;gap:22px;border-top:1px solid var(--line);margin-top:30px;padding-top:25px}.note>span{color:#0088ae;font-size:32px}.note p{font-size:14px}.competencies{background:#121918;color:#fff;padding:76px 0 80px}.section-heading{display:flex;justify-content:space-between;gap:60px;align-items:flex-end;margin-bottom:46px}.section-heading>p{max-width:390px;color:var(--muted);font-size:15px}.competencies .section-heading>p{color:#bec9c5}.competencies .eyebrow{color:var(--cyan);margin-bottom:20px}.competencies h2{font-size:42px}.competency-grid{display:grid;grid-template-columns:repeat(4,1fr)}.competency-grid article{padding:0 27px;border-left:1px solid #ffffff30}.competency-grid article:first-child{padding-left:0;border-left:0}.comp-number{font-size:12px;color:var(--cyan);display:block;margin-bottom:28px}.competency-grid h3{font:26px/1.2 var(--serif);max-width:250px}.competency-grid p{margin-top:16px;color:#bec9c5;font-size:13px;max-width:230px}.filter-form{background:var(--wash);padding:24px;display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.filter-form label{font-size:11px;display:block;font-weight:700}.filter-form select,.filter-form input{width:100%;background:#fff;border:1px solid #c4c8c4;color:#333;border-radius:0;padding:10px 7px;margin-top:7px;font-size:12px}.filter-actions{grid-column:1/-1;display:flex;align-items:center;gap:24px}.filter-actions input{margin:0;flex:1;max-width:420px}.filter-actions button{padding:11px 26px;cursor:pointer}.empty-state{padding:60px 28px;text-align:center;border:1px solid var(--line);border-top:0}.empty-symbol{display:block;margin:0 auto 20px;font-size:35px;color:#008bb3}.empty-state h3{font:28px var(--serif);margin-bottom:12px}.empty-state p{color:var(--muted);font-size:14px;max-width:530px;margin-inline:auto}.empty-state .text-link{margin-top:20px}.experience-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:36px}.experience-card{border-bottom:1px solid var(--line);padding-bottom:25px}.experience-image{background:var(--wash);aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;font-size:44px;color:#666;margin-bottom:20px}.experience-image img{width:100%;height:100%;object-fit:cover}.experience-card h3{font:26px var(--serif);margin:12px 0}.experience-card h3 a{text-decoration:none}.experience-card p{font-size:14px;color:var(--muted)}.experience-card .text-link{margin-top:20px}.institutions{background:var(--wash)}.institution-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.institution-card{background:#fff;display:flex;flex-direction:column}.institution-logo{background:#111;height:180px;padding:38px;display:flex;align-items:center;justify-content:center}.institution-logo img{max-width:300px;max-height:100px;object-fit:contain}.ucam-logo{background:#0b2846;color:#fff}.institution-wordmark{display:flex;align-items:center;gap:18px}.institution-wordmark strong{font:bold 50px var(--serif);letter-spacing:-2px}.institution-wordmark span{font-size:12px;border-left:1px solid #ffffff80;padding-left:18px;line-height:1.4}.institution-detail{padding:32px;display:flex;flex-direction:column;align-items:flex-start;flex:1}.institution-detail .eyebrow{margin-bottom:14px;font-size:10px}.institution-detail h3{font-family:var(--serif);font-size:29px;margin-bottom:20px}.institution-detail p{font-size:14px;color:var(--muted)}.institution-detail p.small{font-size:12px;margin-top:16px}.institution-detail .text-link{margin-top:auto;padding-top:25px}.schools{border-top:1px solid #cdd0cb;margin-top:40px;padding-top:30px;display:grid;grid-template-columns:1fr 1fr;gap:25px}.schools p{font-size:14px;color:var(--muted)}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:44px 30px}.person-photo{aspect-ratio:1.22;background:#eeefea;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.person-photo:after{content:'';position:absolute;width:160px;height:160px;border:1px solid #bfcfc6;border-radius:50%;right:-45px;bottom:-65px}.person-photo img{width:100%;height:100%;object-fit:cover}.person-monogram{font:76px var(--serif);color:#75857c}.photo-caption{position:absolute;bottom:16px;left:18px;font-size:8px;letter-spacing:.15em;color:#526257}.person .person-role{margin:23px 0 10px;font-size:9px}.person h3{font:25px var(--serif);margin-bottom:10px}.person-institution{font-size:12px;color:#555}.person-bio{font-size:13px;color:#555}.person .text-link{margin-top:16px}.team-note{border-top:1px solid var(--line);margin-top:45px;padding-top:22px;color:var(--muted);font-size:13px}.closing{background:var(--cyan);padding:68px 0 75px}.closing .eyebrow{margin-bottom:24px}.closing h2{font-size:clamp(34px,4vw,58px);margin-bottom:30px}.site-footer{background:#111;color:#fff;padding:60px 0 0}.footer-main{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:50px;padding-bottom:55px}.footer-brand{font-size:38px;letter-spacing:-2px;font-weight:700;text-decoration:none}.footer-main p{font-size:12px;color:#b5b8b5;margin-top:15px}.footer-main .eyebrow{font-size:9px;color:#aaa;display:block;margin:12px 0 20px}.footer-main>div>a:not(.footer-brand){display:block;text-decoration:none;font-size:13px;margin:9px 0}.footer-bottom{padding:22px 0;border-top:1px solid #ffffff25;display:flex;justify-content:space-between;font-size:10px;color:#aaa}.article-wrap{max-width:900px}.article-title{margin:25px 0;font-size:clamp(36px,5vw,64px)}.video-panel{background:#101817;padding:30px;color:#fff;text-align:center;margin:35px 0}.video-panel iframe,.video-panel video{width:100%;aspect-ratio:16/9;height:auto;border:0}.video-panel .consent-note{font-size:11px;color:#bcc9c5;margin-top:12px}.video-panel p{padding:20px}.experience-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:30px 0;background:var(--wash);padding:25px}.experience-meta dt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.experience-meta dd{margin:5px 0 0;color:#555}.experience-section{margin:38px 0}.experience-section h2{font-size:30px;margin-bottom:16px}.experience-section p{white-space:pre-line;color:#444}.post-content{margin:25px 0}.post-content a{overflow-wrap:anywhere}.pagination{margin:30px 0}.pagination .page-numbers{display:inline-block;margin:4px;padding:8px 16px;border:1px solid var(--line)}[hidden]{display:none!important}@media(min-width:1400px){.hero{padding-top:88px;padding-bottom:80px}}@media(max-width:1000px){.wrap{width:calc(100% - 48px)}.hero-grid{gap:32px}.hero-copy>.text-link{margin-left:0;display:block}.hero h1{font-size:54px}nav{gap:20px}.project-section{gap:40px}.competency-grid h3{font-size:22px}.competency-grid article{padding-inline:18px}.filter-form{grid-template-columns:repeat(3,1fr)}.team-grid{grid-template-columns:repeat(2,1fr)}.institution-wordmark strong{font-size:40px}}@media(max-width:700px){html{scroll-padding-top:90px}.wrap{width:calc(100% - 40px)}.institutional .wrap>span{font-size:8px}.institutional a{font-size:9px}.header-inner{height:80px}.brand-name{font-size:31px}.brand-sub{font-size:8px}.menu-toggle{display:block}nav{display:none;position:absolute;left:0;right:0;top:80px;background:#fff;padding:20px;border-bottom:1px solid var(--line)}nav.is-open{display:flex;flex-direction:column;gap:8px}nav a{font-size:16px;padding:8px 0}.hero{padding:40px 0}.hero-grid{grid-template-columns:1fr;gap:35px}.hero h1{font-size:52px}.hero-intro{font-size:15px}.hero-copy>.text-link{display:inline-block;margin-left:18px}.lab-art{aspect-ratio:1.25}.art-center{font-size:49px;top:28%}.node-chile{bottom:12%;left:8%}.node-spain{top:12%;right:10%;width:60px;height:60px}.project-strip .wrap{display:grid;grid-template-columns:1fr 1fr;padding-block:18px;font-size:10px}.project-strip span:first-child{font-size:8px}.section{padding-block:65px}.project-section{grid-template-columns:1fr;gap:30px}.section-heading{display:block;margin-bottom:30px}.section-heading>p{margin-top:22px}.section-lead{font-size:17px}.competencies{padding:60px 0}.competencies h2{font-size:35px}.competency-grid{grid-template-columns:1fr 1fr;gap:30px 0}.competency-grid article:nth-child(3){padding-left:0;border-left:0}.comp-number{margin-bottom:15px}.filter-form{grid-template-columns:1fr 1fr;padding:18px;gap:14px}.filter-actions{flex-wrap:wrap;gap:16px}.filter-actions input{flex-basis:100%;max-width:none}.experience-grid{grid-template-columns:1fr}.institution-grid{grid-template-columns:1fr}.institution-logo{height:160px}.institution-detail{padding:26px}.schools{grid-template-columns:1fr;gap:0}.team-grid{gap:30px 20px}.person h3{font-size:21px}.person-monogram{font-size:57px}.person .person-role{font-size:8px}.person-bio{font-size:12px}.closing{padding:55px 0}.footer-main{grid-template-columns:1fr 1fr;gap:25px}.footer-main>div:first-child{grid-column:1/-1}.footer-bottom{display:block}.footer-bottom span{display:block;margin:6px 0}.experience-meta{grid-template-columns:1fr}.video-panel{padding:15px}.section .eyebrow{font-size:10px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Encabezado institucional y portada negra */
.header-brands{display:flex;align-items:center;gap:24px;flex-shrink:0}
.header-finis{display:flex;align-items:center;justify-content:center;background:transparent;padding:0;width:180px;min-height:66px}
.header-finis img{width:100%;height:auto;max-height:45px;object-fit:contain}
.hero{background:#000;color:#fff}
.hero-intro{color:#d0d0d0}
.hero .button.dark{background:var(--cyan);border-color:var(--cyan);color:#000}
.hero .button.dark:hover{background:#fff;border-color:#fff}
.hero .text-link{color:#fff}
.hero .lab-art{background-color:#000;background-image:none}
.hero .art-node{background:#000}
.hero .visual-caption{color:#bbb}
@media(max-width:1100px) and (min-width:701px){.header-brands{gap:14px}.header-finis{width:135px;padding:0}.header-inner{gap:20px}nav{gap:16px}nav a{font-size:12px}}
@media(max-width:700px){.header-brands{gap:12px}.header-finis{width:105px;min-height:48px;padding:0}.header-inner{gap:10px}.header-finis img{max-height:33px}}
@media(max-width:380px){.header-brands{gap:8px}.header-finis{width:88px}.header-brands .brand-name{font-size:27px}.menu-toggle{padding:7px 8px;font-size:13px}}

/* Conexiones a todo el ancho antes de Nuestra mirada */
.hero-grid{grid-template-columns:1fr}
.hero-copy{max-width:1050px}
.hero h1{max-width:1000px}
.hero-intro{max-width:700px}
.connections-band{background:#000;color:#fff;padding:34px 0 18px}
.connections-band .lab-art{background:#000;aspect-ratio:auto;min-height:480px}
.connections-band .art-center{left:20%;right:20%;top:25%;text-align:center;font-size:clamp(42px,5.2vw,76px)}
.connections-band .orbit{width:70%;height:90%;left:15%;top:5%}
.connections-band .art-node{background:#000;width:85px;height:85px}
.connections-band .node-chile{left:10%;bottom:26%}
.connections-band .node-spain{right:10%;top:26%}
.connections-band .visual-caption{color:#bbb;border-top:1px solid #ffffff25;padding-top:18px}
.connections-band .hero-photo{aspect-ratio:2.5;max-height:520px}
@media(max-width:700px){.connections-band{padding-top:20px}.connections-band .lab-art{min-height:420px}.connections-band .art-center{left:8%;right:8%;top:29%;font-size:47px}.connections-band .art-node{width:58px;height:58px}.connections-band .node-chile{left:7%;bottom:15%}.connections-band .node-spain{right:7%;top:12%}.connections-band .hero-photo{aspect-ratio:1.2}}

/* Entrada visible de cada secci?n al bajar por la p?gina. */
.scroll-section{opacity:0;transform:translateY(80px);transition:opacity 1.15s ease,transform 1.15s cubic-bezier(.16,1,.3,1)}
.scroll-section.is-visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){.scroll-section{opacity:1;transform:none;transition:none}}

/* Franja de proyecto al inicio: prop?sito, fondo y per?odo. */
.project-strip-top{background:var(--cyan);color:#000;border:0}
.project-strip-top .wrap{display:flex;justify-content:space-between;gap:18px;min-height:44px}
@media(max-width:700px){.project-strip-top .wrap{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 18px;padding-block:12px;text-align:center}.project-strip-top span:first-child{flex-basis:100%}}

/* Portada gris y encabezado negro con identidad blanca. */
.project-strip-top{background:#e5e5e5;color:#111}
.site-header{background:#000;color:#fff;border-bottom-color:#292929}
.site-header .menu-toggle{color:#fff;border-color:#666}
.site-header .header-finis{background:transparent}
.hero{background:#e5e5e5;color:#000}
.hero-intro{color:#333}
.hero .text-link{color:#000}
.site-header :focus-visible{outline-color:var(--cyan)}
@media(max-width:700px){.site-header nav{background:#000;color:#fff;border-bottom-color:#333}}

/* Rotaci?n de palabras: la posici?n central siempre se destaca en celeste. */
.connections-band .word-cycle{height:3.24em;top:24%;line-height:1.08}
.word-cycle>span{position:absolute;top:0;left:0;width:100%;color:#8a8a8a;opacity:.5;font-style:normal!important;animation:mlf-word-rotate 7.8s cubic-bezier(.65,0,.35,1) infinite}
.word-cycle>span:nth-child(2){animation-delay:-2.6s}
.word-cycle>span:nth-child(3){animation-delay:-5.2s}
.word-cycle>span{animation-play-state:running}
@keyframes mlf-word-rotate{
0%,22%{transform:translateY(0);color:#8a8a8a;opacity:.5}
33.333%,55%{transform:translateY(1.08em);color:#00b7eb;opacity:1}
66.666%,88%{transform:translateY(2.16em);color:#8a8a8a;opacity:.5}
94%{transform:translateY(2.65em);color:#8a8a8a;opacity:0}
95%{transform:translateY(-.5em);color:#8a8a8a;opacity:0}
100%{transform:translateY(0);color:#8a8a8a;opacity:.5}
}
.word-cycle-toggle{position:absolute;z-index:5;right:25px;bottom:76px;background:transparent;border:1px solid #ffffff40;color:#ccc;padding:7px 12px;font-size:10px;cursor:pointer}
.word-cycle-toggle:hover{border-color:var(--cyan);color:#fff}
@media(max-width:700px){.connections-band .word-cycle{top:29%}.word-cycle-toggle{bottom:65px;right:20px;font-size:9px}}
@media(prefers-reduced-motion:reduce){.word-cycle>span{animation:none;position:static;opacity:.5;color:#8a8a8a}.word-cycle>span:nth-child(2){color:var(--cyan);opacity:1}.word-cycle-toggle{display:none}}

.video-placeholder{aspect-ratio:16/9;max-width:760px;margin:0 auto;background:#111;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;padding:28px;position:relative;border:1px solid #333}
.video-placeholder-label{position:absolute;top:22px;left:24px;font-size:9px;letter-spacing:.14em;color:#aaa}
.video-placeholder-play{display:flex;align-items:center;justify-content:center;width:70px;height:50px;border-radius:12px;background:#00b7eb;color:#000;font-size:24px;padding-left:4px}
.video-placeholder strong{font:clamp(20px,3vw,30px) var(--serif);font-weight:400}
.video-placeholder>span:last-child{font-size:12px;color:#aaa}
.video-placeholder-caption{max-width:760px;margin:0 auto 35px;display:flex;justify-content:space-between;padding-top:12px;font-size:11px;color:#666;text-align:left}
@media(max-width:700px){.empty-state:has(.video-placeholder){padding:24px 16px 40px}.video-placeholder{min-height:250px;gap:12px;padding:45px 15px 20px}.video-placeholder-label{top:15px;left:15px;font-size:8px}.video-placeholder>span:last-child{font-size:10px}.video-placeholder-play{width:56px;height:40px;font-size:20px}}

/* Orbitas atomicas alrededor de las palabras. */
.connections-band .lab-art{perspective:1000px}
.connections-band .orbit{width:72%;height:88%;left:14%;top:6%;border:1px solid #00b7eb80;transform-style:preserve-3d;pointer-events:none;animation:mlf-atom-one 15s linear infinite}
.connections-band .orbit-two{border-color:#ffffff55;animation:mlf-atom-two 19s linear infinite}
.connections-band .orbit::after{content:'';position:absolute;left:50%;top:0;width:10px;height:10px;border-radius:50%;background:#00b7eb;box-shadow:0 0 8px #00b7eb,0 0 22px #00b7eb80;transform:translate(-50%,-50%)}
.connections-band .orbit-two::after{background:#fff;box-shadow:0 0 8px #fff,0 0 20px #ffffff60;animation-duration:6s;animation-direction:reverse}
@keyframes mlf-atom-one{from{transform:rotateZ(-40deg) rotateY(58deg) rotateZ(0deg)}to{transform:rotateZ(-40deg) rotateY(58deg) rotateZ(360deg)}}
@keyframes mlf-atom-two{from{transform:rotateZ(45deg) rotateY(54deg) rotateZ(0deg)}to{transform:rotateZ(45deg) rotateY(54deg) rotateZ(-360deg)}}
@keyframes mlf-electron{to{offset-distance:100%}}
@media(prefers-reduced-motion:reduce){.connections-band .orbit,.connections-band .orbit::after{animation:none}.connections-band .orbit{transform:rotate(-40deg) scaleX(.55)}.connections-band .orbit-two{transform:rotate(45deg) scaleX(.62)}}

/* Alineacion del texto del proyecto y fondo de las competencias. */
.competencies{background:#000}
@media(min-width:701px){.project-description{padding-top:37px}}

/* Ajuste vertical del titulo del proyecto. */
.project-section>div:first-child>h2{position:relative;top:-12px}

/* Menu con separacion explicita para evitar estilos heredados de plugins. */
.site-header #main-nav{display:flex;align-items:center;justify-content:flex-end;column-gap:28px;row-gap:12px;flex-wrap:wrap;letter-spacing:normal;word-spacing:normal}
.site-header #main-nav>a{display:block;flex:0 0 auto;width:auto;white-space:nowrap;letter-spacing:normal;word-spacing:normal;line-height:1.5;text-decoration:none;padding:10px 4px}
@media(min-width:701px) and (max-width:1100px){.site-header #main-nav{column-gap:16px}.site-header #main-nav>a{font-size:12px}}
@media(max-width:700px){.site-header #main-nav{display:none;align-items:stretch;flex-direction:column;gap:12px}.site-header #main-nav.is-open{display:flex}.site-header #main-nav>a{padding:12px 8px;font-size:16px}}

/* Version 1.2: logo grande, menu legible y animaciones integradas. */
.site-header .header-inner{min-height:112px;height:auto;padding-block:14px}
.site-header .header-finis{width:240px;min-height:80px;padding:0;flex-shrink:0}
.site-header .header-finis img{display:block;width:100%;max-width:none;max-height:80px;height:auto;object-fit:contain}
.site-header #main-nav>a{color:#fff;letter-spacing:normal;word-spacing:normal}
@media(min-width:961px) and (max-width:1100px){.site-header .header-finis{width:190px;min-height:65px}.site-header .header-finis img{max-height:65px}}
@media(max-width:960px){.site-header .menu-toggle{display:block}.site-header #main-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#000;padding:20px;flex-direction:column;align-items:stretch;gap:12px;border-bottom:1px solid #333}.site-header #main-nav.is-open{display:flex}.site-header #main-nav>a{font-size:16px;padding:12px 8px}.site-header .header-finis{width:200px;min-height:68px}.site-header .header-finis img{max-height:68px}}
@media(max-width:700px){.site-header .header-inner{min-height:88px;padding-block:10px}.site-header .header-finis{width:135px;min-height:48px}.site-header .header-finis img{max-height:48px}}
@media(max-width:380px){.site-header .header-inner{width:calc(100% - 24px)}.site-header .header-finis{width:110px;min-height:40px}.site-header .header-finis img{max-height:40px}}

/* Biblioteca de experiencias: video, descripci?n y ficha PDF. */
.experience-list{margin-top:24px;border-top:1px solid var(--line)}
.resource-count{margin-top:28px;font-size:14px;font-weight:700}.resource-count span{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}
.resource-row{display:grid;grid-template-columns:minmax(220px, .75fr) minmax(0,1.6fr);gap:36px;padding:32px 0;border-bottom:1px solid var(--line);align-items:start}
.resource-row .experience-image{margin:0;aspect-ratio:16/10;font-size:24px;text-align:center}.resource-copy{min-width:0}.resource-copy h3{font:30px/1.2 var(--serif);margin:10px 0 16px}.resource-copy p{font-size:14px;color:var(--muted)}.resource-copy .eyebrow{font-size:10px;color:var(--ink);margin:0}.resource-description{margin-top:16px!important;padding-left:14px;border-left:3px solid var(--cyan)}
.resource-actions{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin-top:24px}.resource-actions .button{font-size:12px;padding:11px 16px;gap:18px}.resource-actions .text-link{margin:0}.resource-detail{margin-top:18px!important}.pdf-resource{padding:28px;background:var(--wash);border-top:3px solid var(--cyan);margin:30px 0}.pdf-resource h2{font-size:30px;margin:10px 0 16px}.pdf-resource p{white-space:pre-line}.catalogue-preview{text-align:left;margin-bottom:32px}.catalogue-preview>.eyebrow{color:var(--muted)}.catalogue-preview .resource-row{border:0;padding-bottom:0}.catalogue-preview .video-placeholder{width:100%;min-height:260px;margin:0}.catalogue-preview .video-placeholder strong{font-size:22px}.resource-pending{font-size:11px;padding:8px 10px;background:var(--wash);color:var(--muted)}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.resource-row{grid-template-columns:1fr;gap:22px}.resource-copy h3{font-size:26px}.resource-actions{gap:12px}.pdf-resource{padding:20px}.catalogue-preview .video-placeholder{min-height:240px}}

.experience-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.experience-list .resource-row{display:flex;flex-direction:column;gap:24px;min-width:0}
.experience-list .resource-row>.experience-image,.experience-list .resource-row>.resource-copy{width:100%}
.experience-list .resource-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start}
.experience-list .resource-copy>.resource-actions{margin-top:auto;padding-top:24px}
.experience-list .resource-copy>.resource-description{margin-bottom:0}
@media(max-width:700px){.experience-list{grid-template-columns:1fr;gap:16px}}
.preview-examples .example-video{width:100%;min-height:280px;margin:0;aspect-ratio:16/11;padding:48px 22px 24px;text-align:center;align-self:start}
.preview-examples .example-video strong{font:25px/1.2 var(--serif);max-width:300px}
.preview-examples .example-video>span:last-child{font-size:11px}
.preview-examples .resource-row:nth-child(even) .example-video{background:#102a35}
.preview-examples .example-competency{display:inline-block;margin-top:16px;padding:5px 10px;background:var(--wash);font-size:11px;color:#333}
.preview-examples .resource-actions button:disabled{cursor:default;opacity:.65}
.preview-examples .resource-actions button:disabled:hover{background:transparent;color:inherit}
.preview-examples .resource-actions .dark:disabled:hover{background:#111;color:#fff}
.example-download{border:0;background:none;padding:8px 0;font-size:12px;text-decoration:underline;text-underline-offset:5px}
.preview-examples .example-note{font-size:11px;color:var(--muted);margin-top:12px}
@media(max-width:700px){.preview-examples .example-video{min-height:250px;aspect-ratio:16/10}}
/* Identidades institucionales juntas, con contraste para el logo azul de UCAM. */
.header-brands{gap:20px}.header-ucam{position:relative;display:block;flex-shrink:0;width:150px;height:58px;overflow:hidden;background:#fff;border-radius:3px}.header-ucam img{position:absolute;left:50%;top:50%;width:146%;max-width:none;height:auto;transform:translate(-50%,-50%)}.header-brands .site-brand{border-left:1px solid #ffffff45;padding-left:20px}.header-inner{gap:24px}
@media(min-width:701px) and (max-width:1150px){.header-inner{height:auto;min-height:120px;flex-wrap:wrap;justify-content:center;gap:0;padding-block:12px}.header-brands{justify-content:center;width:100%;gap:22px}.header-finis{width:160px}.header-ucam{width:140px;height:54px}.site-header nav{gap:28px}.site-header nav a{font-size:13px}}
@media(max-width:700px){html{scroll-padding-top:155px}.header-inner{height:auto;min-height:132px;gap:12px;padding-block:14px;align-items:center}.header-brands{display:grid;grid-template-columns:105px 105px;gap:12px 16px;flex-shrink:1}.header-finis{width:105px;min-height:38px}.header-finis img{max-height:33px}.header-ucam{width:105px;height:40px}.header-brands .site-brand{grid-column:1/-1;border:0;padding-left:0;display:flex;align-items:center;gap:12px}.header-brands .brand-sub{margin:0;font-size:8px;line-height:1.5;max-width:65px}.header-brands .brand-name{font-size:28px}.site-header nav{top:100%}.menu-toggle{padding:8px;font-size:12px}}
@media(max-width:350px){.header-brands{grid-template-columns:90px 90px;gap:12px}.header-finis,.header-ucam{width:90px}.header-ucam{height:35px}}

/* Carrusel horizontal del equipo: tres personas en escritorio. */
.person-photo{width:100%;max-width:230px;aspect-ratio:1.22;border-radius:14px;overflow:hidden}
.person-photo .person-monogram{font-size:58px}
@media(max-width:700px){.person-photo{max-width:190px;border-radius:12px}.person-photo .person-monogram{font-size:48px}.person-photo .photo-caption{font-size:7px;left:14px;bottom:12px}}
.team-carousel-shell{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:16px;align-items:center;min-width:0}
.team-grid.is-carousel{display:flex;gap:30px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;padding:4px;overscroll-behavior-x:contain;min-width:0}
.team-grid.is-carousel::-webkit-scrollbar{display:none}
.team-grid.is-carousel>.person{flex:0 0 calc((100% - 60px)/3);min-width:0;scroll-snap-align:start;text-align:center}
.team-grid.is-carousel .person-photo{margin-inline:auto}
.team-grid.is-carousel .person-bio,.team-grid.is-carousel .person-institution{max-width:280px;margin-inline:auto}
.team-carousel-shell>button{background:#fff;border:1px solid var(--line);height:44px;width:44px;padding:0;cursor:pointer;font-size:20px;border-radius:50%}
.team-carousel-shell>button:hover{background:var(--cyan);border-color:var(--cyan)}
@media(max-width:1000px){.team-grid.is-carousel>.person{flex-basis:calc((100% - 30px)/2)}}
@media(max-width:700px){.team-carousel-shell{grid-template-columns:36px minmax(0,1fr) 36px;gap:6px}.team-carousel-shell>button{width:36px;height:44px}.team-grid.is-carousel{gap:20px}.team-grid.is-carousel>.person{flex-basis:100%}}

/* Miniaturas compactas junto a la descripción, conservando dos columnas. */
.experience-list .resource-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr);gap:20px;align-items:center}
.experience-list .resource-row>.example-video,.experience-list .resource-row>.experience-image{align-self:center}
.experience-list .resource-row>.experience-image,.preview-examples .example-video{width:100%;min-height:0;aspect-ratio:16/10;margin:0;border:0;border-radius:10px;overflow:hidden}
.preview-examples .example-video{padding:38px 12px 18px;gap:12px;cursor:pointer;color:#fff}
.preview-examples .example-video .video-placeholder-label{font-size:8px;left:10px;top:12px;letter-spacing:.06em}
.preview-examples .example-video .video-placeholder-play{width:44px;height:34px;font-size:16px}
.preview-examples .example-video>span:last-child{font-size:10px}
.experience-list .resource-copy h3{font-size:23px;margin-top:8px}
.experience-list .resource-copy>p{font-size:13px}
.experience-list .resource-copy>.resource-actions{margin-top:16px;padding-top:0;gap:10px}
.experience-list .resource-actions .button{padding:9px 11px;font-size:11px;gap:10px}
.video-thumbnail{position:relative;text-decoration:none}.thumbnail-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:20px!important;background:#111c;color:white;padding:10px 18px;border-radius:8px}
.mlf-video-modal .modal-content{background:#101817;color:#fff;border:0;border-radius:14px;overflow:hidden}
.mlf-video-modal .modal-header{border-color:#ffffff30;gap:20px}.mlf-video-modal .modal-title{letter-spacing:0;font-family:var(--sans);line-height:1.4}
.mlf-video-modal .modal-body{padding:0}.mlf-video-modal iframe,.mlf-video-modal video{display:block;width:100%;aspect-ratio:16/9;max-height:75vh;border:0;background:#000}
.mlf-video-modal .video-modal-message{padding:48px 28px;text-align:center;color:#fff}.mlf-video-modal .modal-body>a{display:block;padding:0 28px 28px;color:#fff}
@media(max-width:1100px){.experience-list{grid-template-columns:1fr}.experience-list .resource-row{grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr)}}
@media(max-width:480px){.experience-list .resource-row{grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:12px}.experience-list .resource-copy h3{font-size:20px}.preview-examples .example-video{padding:30px 8px 12px}.preview-examples .example-video .video-placeholder-label{font-size:6px}.preview-examples .example-video>span:last-child{font-size:9px}}
/* Logo UCAM horizontal blanco: el marco compensa sus márgenes transparentes. */
.site-header .header-ucam{width:170px;height:70px;background:transparent;border-radius:0;overflow:hidden;display:block;position:relative}
.site-header .header-ucam img{position:static;width:100%;height:100%;max-width:100%;object-fit:contain;transform:none}
@media(min-width:701px) and (max-width:1150px){.site-header .header-ucam{width:155px;height:64px}}
@media(max-width:700px){.site-header .header-ucam{width:115px;height:48px}.header-brands{grid-template-columns:105px 115px}}
@media(max-width:350px){.site-header .header-ucam{width:90px;height:36px}.header-brands{grid-template-columns:90px 90px}}
.drive-videos{margin:0 0 40px}.drive-videos h3{font-size:26px}.drive-videos iframe{display:block;width:100%;height:480px;border:1px solid var(--line);background:#fff}.drive-videos p{margin:12px 0}
.video-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.video-thumbnail img:not([hidden])+.thumbnail-fallback{display:none}
.hero .hero-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(28px,5vw,70px)}
.hero-carousel{background:#101817;color:#fff;min-height:300px;padding:clamp(28px,4vw,52px);display:flex;flex-direction:column;justify-content:space-between;border-radius:10px}
.hero-slide span{color:var(--cyan);font-size:13px;font-weight:700;letter-spacing:.13em}.hero-slide p{font:clamp(28px,3vw,42px)/1.15 var(--serif);margin-top:20px;max-width:420px}.hero-carousel-controls{display:flex;align-items:center;gap:12px;margin-top:30px}.hero-carousel-controls button{border:1px solid #ffffff80;background:transparent;color:#fff;padding:8px 14px;cursor:pointer}.hero-carousel-controls button:hover{background:var(--cyan);color:#111}.hero-carousel-controls span{font-size:14px}.hero-carousel-controls [data-hero-pause]{margin-left:auto;font-size:14px}
@media(max-width:700px){.hero .hero-grid{grid-template-columns:1fr}.hero-carousel{min-height:250px}}

/* Galer?a de portada: carrusel Bootstrap con im?genes pendientes. */
.hero .hero-carousel{display:block;position:relative;padding:0;min-height:0;overflow:hidden;background:#101817}.hero-carousel .carousel-item{aspect-ratio:4/3}.hero-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:14px;color:#fff;text-align:center;padding:60px;background:linear-gradient(135deg,#102d36,#101817)}.hero-placeholder-two{background:linear-gradient(135deg,#054b61,#101817)}.hero-placeholder-three{background:linear-gradient(135deg,#172e34,#006983)}.hero-placeholder span{font-size:14px;letter-spacing:.08em}.hero-placeholder strong{font:clamp(30px,4vw,50px) var(--serif)}.hero-carousel-pause{position:absolute;right:16px;bottom:14px;z-index:3;border:1px solid #ffffff99;background:#0009;color:#fff;padding:6px 12px;font-size:14px;cursor:pointer}.hero-carousel .carousel-indicators{margin-bottom:20px}.hero-carousel .carousel-control-prev,.hero-carousel .carousel-control-next{width:12%}

/* Carrusel panor?mico a todo el ancho de la pantalla. */
.hero .hero-grid{grid-template-columns:1fr}.hero-gallery{width:100%;overflow:hidden}.hero-gallery .hero-carousel{display:block;position:relative;width:100%;min-height:0;padding:0;border-radius:0;background:#101817}.hero-gallery .carousel-item{height:clamp(300px,38vw,560px);aspect-ratio:auto}.hero-gallery .hero-placeholder{height:100%;padding:60px 15%;}.hero-gallery .hero-carousel-pause{bottom:18px;right:22px}.hero-gallery .carousel-control-prev,.hero-gallery .carousel-control-next{width:10%}@media(max-width:700px){.hero-gallery .carousel-item{height:300px}}

/* Franja de t?tulo de experiencias. */
.experience-heading-band{background:#004379;color:#fff;padding:70px 0}.experience-heading-band .section-heading{margin-bottom:0}.experience-heading-band .section-heading>p{color:#fff}.experience-content{padding-top:55px;padding-bottom:104px}@media(max-width:700px){.experience-heading-band{padding:50px 0}.experience-content{padding-top:35px;padding-bottom:65px}}

/* Descripci?n debajo del t?tulo de experiencias. */
.experience-heading-band .section-heading{display:block}.experience-heading-band .section-heading>p{margin-top:22px;max-width:none}

/* Descripci?n debajo del t?tulo de instituciones. */
.institutions .section-heading{display:block}.institutions .section-heading>p{margin-top:22px;max-width:none}

.node-spain{border-color:#EDAB00}

.competencies .section-heading{display:block}.competencies .section-heading>p{margin-top:22px;max-width:none}

.institution-logo.ucam-logo{background:#0e4377}.institution-logo.ucam-logo img{width:90%;max-width:460px;max-height:88%;object-fit:contain}

#equipo .section-heading{display:block}#equipo .section-heading>p{margin-top:22px;max-width:800px}

.institution-logo.ucam-logo img{width:100%;max-width:540px;max-height:100%}

.experience-heading-band h2 .cyan{color:#fff}

.header-search{display:flex;align-items:center;border-bottom:1px solid currentColor;max-width:200px}.header-search input{width:150px;min-width:0;border:0;background:transparent;color:inherit;font-size:13px;outline-offset:2px}.header-search input::placeholder{color:inherit;opacity:.75}.header-search button{display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:inherit;padding:8px;cursor:pointer}@media(max-width:700px){.header-search{max-width:100%;width:100%}.header-search input{flex:1;width:auto}}

.competency-grid.is-carousel{display:flex;gap:30px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px;overscroll-behavior-x:contain;min-width:0}.competency-grid.is-carousel::-webkit-scrollbar{display:none}.competency-grid.is-carousel>article{flex:0 0 calc((100% - 60px)/3);min-width:0;scroll-snap-align:start;padding:18px 24px;border-left:1px solid #ffffff30}.competencies .team-carousel-shell>button{background:transparent;color:#fff;border-color:#ffffff80}.competencies .team-carousel-shell>button:hover{background:var(--cyan);border-color:var(--cyan);color:#111}@media(max-width:1000px){.competency-grid.is-carousel>article{flex-basis:calc((100% - 30px)/2)}}@media(max-width:700px){.competency-grid.is-carousel{gap:20px}.competency-grid.is-carousel>article{flex-basis:100%}}

/* Una presentación más compacta para el carrusel de competencias. */
.competencies{padding:58px 0 62px}
.competencies .section-heading{margin-bottom:28px}
.competencies .section-heading>p{margin-top:12px;max-width:620px}
.competencies .eyebrow{margin-bottom:12px}
.competencies h2{font-size:clamp(30px,3vw,38px)}
.competency-grid.is-carousel{gap:16px}
.competency-grid.is-carousel>article{flex-basis:calc((100% - 48px)/4);padding:16px 18px;border:1px solid #ffffff30;border-radius:4px;background:#ffffff08}
.competency-grid.is-carousel .comp-number{margin-bottom:14px}
.competency-grid.is-carousel h3{font-size:21px;max-width:none}
.competency-grid.is-carousel p{margin-top:10px;max-width:none}
@media(max-width:1000px){.competency-grid.is-carousel>article{flex-basis:calc((100% - 32px)/3)}}
@media(max-width:700px){.competencies{padding:44px 0 48px}.competency-grid.is-carousel>article{flex-basis:calc((100% - 16px)/2);padding:14px}.competency-grid.is-carousel h3{font-size:18px}}
@media(max-width:430px){.competency-grid.is-carousel>article{flex-basis:100%}}

/* Textos de presentación sobre las diapositivas. */
.hero-gallery .carousel-item{height:auto;min-height:clamp(380px,38vw,560px)}
.hero-gallery .hero-placeholder{min-height:clamp(380px,38vw,560px);height:auto;text-align:left;align-items:flex-start;padding:70px max(12%, calc((100% - 1280px)/2)) 85px}
.hero-slide-copy{width:min(800px,100%)}
.hero-slide-copy .eyebrow{color:#65dcff;margin-bottom:18px}
.hero-slide-copy h1,.hero-slide-copy h2{font-size:clamp(36px,4.5vw,66px);margin:0 0 20px}
.hero-slide-copy p:not(.eyebrow){font-size:clamp(15px,1.3vw,18px);line-height:1.6;max-width:760px}
.hero-slide-copy p+p{margin-top:12px}
.hero-slide-copy a{display:inline-block;margin-top:20px;color:#fff;text-underline-offset:5px}
@media(max-width:700px){.hero-gallery .carousel-item,.hero-gallery .hero-placeholder{min-height:400px}.hero-gallery .hero-placeholder{padding:48px 13% 80px}.hero-slide-copy h1,.hero-slide-copy h2{font-size:clamp(32px,8vw,44px)}.hero-slide-copy p:not(.eyebrow){font-size:14px}}

/* Fotografias con encuadre y altura uniformes en el carrusel. */
.hero-gallery .hero-placeholder{background-size:cover;background-position:center;background-repeat:no-repeat}
.hero-gallery .hero-placeholder-one{background-image:linear-gradient(90deg,rgba(5,17,21,.88),rgba(5,17,21,.3)),url('assets/carrusel-1.jpg');background-position:center 65%}
.hero-gallery .hero-placeholder-two{background-image:linear-gradient(90deg,rgba(5,17,21,.88),rgba(5,17,21,.3)),url('assets/carrusel-3.jpg')}
.hero-gallery .hero-placeholder-three{background-image:linear-gradient(90deg,rgba(5,17,21,.88),rgba(5,17,21,.3)),url('assets/carrusel-2.jpg')}
.hero-gallery .carousel-item{height:clamp(380px,38vw,560px)}
.hero-gallery .hero-placeholder{width:100%;height:100%}
@media(max-width:700px){.hero-gallery .carousel-item{height:400px}}

/* Una composicion mas ligera para que las fotografias tengan protagonismo. */
.hero-gallery .hero-slide-copy{max-width:560px}
.hero-gallery .hero-slide-copy h1,.hero-gallery .hero-slide-copy h2{font-size:clamp(32px,3.1vw,48px);line-height:1.1;letter-spacing:-.035em;margin-bottom:16px}
.hero-gallery .hero-slide-copy p:not(.eyebrow){font-size:clamp(14px,1.1vw,16px);max-width:480px}
.hero-gallery .hero-slide-copy .eyebrow{margin-bottom:14px}
@media(max-width:700px){.hero-gallery .hero-slide-copy h1,.hero-gallery .hero-slide-copy h2{font-size:clamp(30px,7vw,38px)}}

/* Texto en la zona superior de la fotografia, dejando visibles a las personas. */
.hero-gallery .hero-placeholder-two{justify-content:flex-start;padding-top:clamp(35px,4vw,65px)}
.hero-gallery .hero-placeholder-two .hero-slide-copy{max-width:430px}
.hero-gallery .hero-placeholder-two .hero-slide-copy h2{font-size:clamp(28px,2.5vw,40px)}
.hero-gallery .hero-placeholder-two .hero-slide-copy p:not(.eyebrow){font-size:14px;max-width:390px}
@media(max-width:700px){.hero-gallery .hero-placeholder-two{padding-top:40px}.hero-gallery .hero-placeholder-two .hero-slide-copy{max-width:75%}.hero-gallery .hero-placeholder-two .hero-slide-copy h2{font-size:clamp(26px,6vw,34px)}}
