@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#151515;background:#fff}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}.topbar{position:fixed;z-index:30;top:24px;left:50%;transform:translateX(-50%);width:min(690px,calc(100% - 32px));height:54px;background:#161616;color:white;display:grid;grid-template-columns:55px 1fr 55px;align-items:center;box-shadow:0 8px 24px #0002}.topbar button{height:54px;border:0;background:none;color:white;font-size:24px}.brand{text-align:center;font-weight:700;font-size:18px;letter-spacing:-.05em}.brand:hover{opacity:.78}.shell{max-width:1220px;margin:auto;padding:116px 28px 100px}.serif,h1,h2,h3{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;letter-spacing:-.035em}.eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.09em}.lead-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:25px}.feature{display:block}.visual{position:relative;overflow:hidden;background:#dce1dd}.feature .visual{height:540px}.feature-copy{padding:26px 0 10px}.feature h2{font-size:clamp(38px,4.2vw,65px);line-height:.99;max-width:750px;margin:12px 0}.feature p{font-size:18px;line-height:1.48;max-width:620px}.side-stack{display:grid;gap:28px}.small-feature .visual{height:214px}.small-feature h2{font-size:34px;line-height:1.05;margin:12px 0 5px}.small-feature p{font-size:15px;line-height:1.5}.feed-heading{border-top:1px solid #222;margin:55px 0 22px;padding-top:18px;font-size:15px;font-weight:700}.feed{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.feed .visual{height:220px}.feed h2{font-size:34px;line-height:1.06;margin:11px 0}.feed p{font-size:15px;line-height:1.5;color:#454545}.page-title{font-size:clamp(56px,9vw,115px);line-height:.95;margin:25px 0 50px}.listing{display:grid;grid-template-columns:repeat(2,1fr);gap:45px 28px}.listing .visual{height:330px}.listing h2{font-size:48px;line-height:1.02;margin:15px 0 10px}.listing p{font-size:17px;line-height:1.5}.article-head{max-width:900px;margin:30px auto 42px}.article-head h1{font-size:clamp(54px,7.5vw,108px);line-height:.96;margin:18px 0 24px}.subtitle{font-size:clamp(19px,2.2vw,26px);line-height:1.42;max-width:740px;color:#4b4b4b}.date{font-size:13px;color:#646464;margin-top:26px}.article-hero{height:min(61vw,650px);min-height:330px}.article-body{max-width:710px;margin:70px auto;font-size:20px;line-height:1.78}.article-body p{margin:0 0 28px}.article-body h2{font-size:45px;line-height:1.1;margin:50px 0 20px}.article-body figure{margin:45px 0}.article-body figcaption{font-size:13px;color:#666;line-height:1.4;margin-top:10px}.article-body .visual{height:350px}.embed{aspect-ratio:16/9;background:#eee}.embed iframe{width:100%;height:100%;border:0}.profile{min-height:75vh;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}.profile h1{font-size:clamp(65px,11vw,150px);line-height:1;margin:0 0 25px}.profile p{font-size:clamp(16px,2vw,22px);margin:0;line-height:1.5}.overlay{position:fixed;inset:0;background:#f8f8f8;z-index:25;padding:110px max(28px,calc((100vw - 900px)/2)) 45px;overflow-y:auto;display:none}.overlay.open{display:block}.overlay h2{font-size:42px;margin:0 0 30px}.overlay nav a{display:block;font-size:30px;font-weight:700;border-bottom:1px solid #ddd;padding:16px 0}.overlay nav .nav-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:#777;margin:28px 0 0}.overlay .external{display:flex;align-items:center;gap:13px;border-top:1px solid #aaa;margin-top:75px;padding:22px 0;font-size:16px;font-weight:700}.monogram{width:31px;height:31px;background:#111;color:white;display:grid;place-items:center;font-family:Georgia,serif;font-size:17px}.search-box{display:flex;align-items:center;border-bottom:1px solid #aaa;padding:10px 0;margin-bottom:26px}.search-box input{background:transparent;border:0;outline:0;width:100%;font-size:24px;padding:12px 0}.result{display:grid;grid-template-columns:1fr 120px;gap:18px;padding:20px 0;border-bottom:1px solid #ddd;align-items:center}.result h3{font-size:27px;line-height:1.1;margin:0 0 10px}.tags{font-size:12px;color:#666}.result .visual{height:75px}.empty{color:#666;padding:30px 0}.art-one{background:#c6d5d5 url('/art/horizons.svg') center/cover}.art-two{background:#e6e7df url('/art/iterations.svg') center/cover}.art-three{background:#d7cfbf url('/art/attention.svg') center/cover}.art-four{background:#dce4d9 url('/art/probability.svg') center/cover}.art-five{background:#d2dce5 url('/art/field.svg') center/cover}.art-six{background:#dfd6d2 url('/art/loop.svg') center/cover}footer{border-top:1px solid #ddd;padding:24px 28px;color:#666;font-size:12px;max-width:1220px;margin:auto}.demo{display:inline-block;color:#777;font-size:12px;margin-left:9px}a:hover h2,a:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #bd481b;outline-offset:3px}@media(max-width:760px){.topbar{top:15px}.shell{padding:93px 18px 70px}.lead-grid,.listing{grid-template-columns:1fr}.feature .visual{height:410px}.side-stack{grid-template-columns:1fr 1fr;gap:15px}.small-feature .visual{height:150px}.small-feature h2{font-size:27px}.small-feature p{display:none}.feed{grid-template-columns:1fr 1fr;gap:18px}.feed .visual{height:170px}.feed h2{font-size:27px}.listing .visual{height:250px}.listing h2{font-size:40px}.article-head{margin-top:22px}.article-hero{height:350px}.article-body{font-size:18px;margin:40px auto}.overlay{padding:94px 24px 30px}.profile{min-height:70vh}.profile p{max-width:420px}}@media(max-width:500px){.feature .visual{height:390px}.side-stack,.feed{grid-template-columns:1fr}.small-feature .visual,.feed .visual{height:240px}.small-feature p{display:block}.article-hero{min-height:300px;height:330px}}

+/* Navegación de escritorio inspirada en la composición de referencia. */
.desktop-nav{display:none}
.external img{display:block;width:220px;max-width:100%;height:auto;filter:invert(1)}
#menu{background:#161616;color:#fff}
#menu h2{font-family:'DM Sans',Arial,sans-serif;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
#menu nav a{border-color:#555}
#menu .external{border-color:#555}
@media(min-width:900px){
  .topbar{width:min(1220px,calc(100% - 56px));height:70px;grid-template-columns:190px 1fr 72px;gap:3px;background:transparent;box-shadow:none}
  .topbar .brand{height:70px;background:#161616;display:flex;align-items:center;justify-content:center;font-size:23px;letter-spacing:-.05em}
  .topbar #menuButton{display:none}
  .topbar #searchButton{height:70px;background:#161616;font-size:31px}
  .desktop-nav{height:70px;display:flex;align-items:center;justify-content:center;gap:clamp(38px,6vw,100px);background:#161616}
  .desktop-nav a{font-size:19px;color:#ddd;padding:21px 4px}
  .desktop-nav a:hover,.desktop-nav a:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:12px}
  .shell{padding-top:128px}
}

/* Cabecera editorial y menú adaptable. */
.topbar{border-radius:7px;overflow:hidden}
.brand{display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:.9;gap:0;font-weight:700}
#menu .overlay h2{color:#e27a27}
#menu h2{color:#e27a27}
#menu .external{gap:9px;font-size:15px;font-weight:500;color:#d7d7d7;margin-top:50px;white-space:nowrap}
#menu .external img{width:112px;max-width:40vw;flex:none}
#menu .external span:last-child{font-size:20px;line-height:1}
#menuButton[aria-expanded="true"]{font-size:31px;font-weight:300;line-height:1}
.immersive{display:flex;align-items:flex-end;min-height:540px;margin-top:62px;padding:25px;position:relative;background-size:cover;background-position:center;border-radius:14px;overflow:hidden}
.immersive:focus-visible{outline-offset:5px}
.immersive-copy{position:relative;z-index:1;background:#fff;border-radius:7px;padding:26px 30px;max-width:410px}
.immersive h2{font-size:clamp(36px,4vw,58px);line-height:1.02;margin:14px 0}
.immersive p{font-size:17px;line-height:1.5;margin:0}
@media(max-width:1150px){
  .topbar{width:min(690px,calc(100% - 32px));height:54px;grid-template-columns:55px 1fr 55px;gap:0;background:#161616;box-shadow:0 8px 24px #0002}
  .topbar #menuButton{display:block;height:54px}
  .topbar #searchButton{height:54px;background:none;font-size:24px}
  .topbar .brand{height:54px;font-size:15px}
  .desktop-nav{display:none}
}
@media(min-width:1151px){
  .topbar{grid-template-columns:116px 1fr 72px}
  .topbar .brand{font-size:25px;line-height:.92}
  .desktop-nav{gap:clamp(40px,5vw,95px)}
}
@media(max-width:760px){.immersive{min-height:450px;margin-top:46px;padding:15px}.immersive-copy{max-width:85%;padding:20px}.immersive h2{font-size:40px}.immersive p{font-size:15px}}
@media(max-width:500px){.immersive{min-height:420px}.immersive-copy{max-width:95%}.immersive h2{font-size:34px}}
#menu.open{display:flex;flex-direction:column}
#menu .external{margin-top:auto}

#menu{background:#202020}
.search-icon{width:30px;height:30px;display:block;margin:auto}
#searchButton[aria-expanded="true"]{font-size:32px;font-weight:300;line-height:1}
.category-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:27px}
.category-grid .feature .visual{height:530px}
.category-grid .small-feature .visual{height:195px}
.category-grid .small-feature h2{font-size:clamp(29px,2.7vw,42px)}
@media(max-width:760px){
  .category-grid{grid-template-columns:1fr}
  .category-grid .feature .visual{height:390px}
  .category-grid .small-feature .visual{height:175px}
}
@media(max-width:500px){
  .category-grid .side-stack{grid-template-columns:1fr}
  .category-grid .small-feature .visual{height:240px}
}

.share-wrap{position:relative;max-width:370px;margin:20px auto 86px}
.share-button{width:100%;min-height:58px;display:flex;justify-content:center;align-items:center;gap:13px;background:#111;color:#fff;border:0;border-radius:5px;font-size:17px;font-weight:700}
.share-button:hover{background:#292929}
.share-button svg{width:25px;height:25px}
.share-options{position:absolute;left:0;right:0;bottom:calc(100% + 10px);background:#f0f1f3;padding:10px 0;border-radius:5px;box-shadow:0 10px 25px #0002;z-index:3}
.share-options[hidden]{display:none}
.share-options a,.share-options button{display:block;width:100%;border:0;background:none;text-align:left;padding:13px 25px;color:#111;font-size:16px;font-weight:600}
.share-options button{cursor:pointer}
.share-options a:hover,.share-options button:hover{color:#c25b12;background:#e6e7e9}
.share-options button span{display:inline-block;min-width:22px;margin-right:9px}
@media(max-width:500px){.share-wrap{max-width:100%;margin:10px auto 65px}}

.profile p a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.profile p a:hover{color:#b65417}
.share-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:25px;margin-right:14px;font-family:Arial,sans-serif;font-size:22px;line-height:1;vertical-align:middle;font-weight:700}
.social-f{font-size:27px}
.social-x{font-size:23px}
.social-in{background:#111;color:#fff;font-size:14px;border-radius:2px;height:23px}
.share-options a,.share-options button{display:flex;align-items:center}

.art-happiness{background:#8cb5d7 url('/art/happiness-by-design.jpg') center/cover}
.article-equation{margin:37px -18px;padding:18px;overflow-x:auto;text-align:center;border-top:1px solid #e4e4e4;border-bottom:1px solid #e4e4e4;color:#171717}
.article-equation math{font-family:'STIX Two Math','Cambria Math',serif;font-size:clamp(1.55rem,3vw,2rem);min-width:max-content}
.article-body blockquote{font-family:'Libre Caslon Display',Georgia,serif;font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.25;margin:38px 0;padding:15px 0 15px 26px;border-left:3px solid #1b1b1b}
.article-body .article-principle{font-family:'DM Sans',Arial,sans-serif;letter-spacing:0;font-size:1.27rem;font-weight:700;line-height:1.35;margin:28px 0 8px}
.article-body .article-principle+p{margin-bottom:24px}
.article-body ul{padding-left:1.4em;margin:0 0 28px}
.article-body li{padding-left:.2em;margin:5px 0}
.article-chart{width:min(1000px,calc(100vw - 36px));max-width:none;position:relative;left:50%;transform:translateX(-50%);margin:48px 0!important}
.article-chart img{display:block;width:100%;height:auto}
.article-chart figcaption{font-size:13px;line-height:1.5;color:#626262;max-width:710px;margin:10px auto 0}
.article-table-wrap{overflow-x:auto;margin:25px 0 45px}
.article-table{border-collapse:collapse;font-size:1rem;line-height:1.45;width:100%}
.article-table td{border-bottom:1px solid #ddd;padding:9px 12px 9px 0;vertical-align:top}
.article-table tr:first-child{font-weight:700;border-top:1px solid #222}
.article-table td:first-child{min-width:90px;font-weight:600}
.happiness-model{width:min(1000px,calc(100vw - 36px));position:relative;left:50%;transform:translateX(-50%);margin:50px 0 65px}
.model-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-end;margin-bottom:20px}
.model-head h2{margin:0 0 8px;font-size:clamp(30px,4vw,46px)}
.model-head p{max-width:660px;margin:0;line-height:1.5;font-size:16px;color:#555}
.legend{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;color:#666}
.legend i{width:100px;height:8px;border-radius:10px;background:linear-gradient(90deg,hsl(270 70% 45%),hsl(55 85% 55%))}
.canvas-wrap{position:relative;width:100%;height:min(72vh,680px);min-height:420px;overflow:hidden;border-radius:12px;background:#fafafa;touch-action:none}
#happiness3d{display:block;width:100%;height:100%;cursor:grab}
#happiness3d:active{cursor:grabbing}
.axis{position:absolute;font-size:12px;letter-spacing:.02em;color:#555;pointer-events:none}
.axis-x{left:50%;bottom:12px;transform:translateX(-50%)}
.axis-y{right:14px;bottom:46px}
.axis-z{left:14px;top:14px}
.technical-pdf{display:inline-flex;gap:18px;align-items:center;margin:22px 0 42px;padding:14px 20px;border:1px solid #111;border-radius:999px;font-size:16px;font-weight:600;line-height:1.4}
.technical-pdf:hover{background:#111;color:#fff}
@media(max-width:700px){.model-head{display:block}.legend{margin-top:14px}.canvas-wrap{height:500px;min-height:500px}.article-equation{margin:30px 0}.article-body blockquote{margin:30px 0}}

.art-limit{background:#58b7c2 url('/art/el-limite.jpeg') center/cover}
.art-limit.article-hero{height:auto;min-height:0;aspect-ratio:547/365}

/* Reading layout for El límite */
.limit-reading{max-width:660px;font-size:21px;line-height:1.85;margin:64px auto 80px;color:#292929;text-wrap:pretty}
.limit-reading p{margin-bottom:30px}
.limit-reading p:first-child{font-size:23px;line-height:1.7;color:#151515;margin-bottom:38px}
.limit-reading .limit-closing{font-family:'Libre Caslon Display',Georgia,serif;font-size:clamp(34px,5vw,48px);line-height:1.2;letter-spacing:-.025em;color:#151515;padding-top:34px;margin-top:48px;margin-bottom:0}
@media(max-width:760px){.limit-reading{max-width:100%;font-size:19px;line-height:1.8;margin:38px auto 56px}.limit-reading p{margin-bottom:26px}.limit-reading p:first-child{font-size:21px;line-height:1.7;margin-bottom:30px}.limit-reading .limit-closing{margin-top:36px;padding-top:28px}}

.art-story{background:#171717 url('/art/disonancia-mental.jpg') center/cover}
.art-story.article-hero{height:auto;min-height:0;aspect-ratio:728/410}
.story-reading{max-width:660px;font-size:21px;line-height:1.8;color:#292929;text-wrap:pretty}
.story-reading p{margin-bottom:28px}
.story-reading p:first-child{font-size:23px;line-height:1.7;color:#151515}
.story-reading blockquote{margin:42px 0;padding:12px 0 12px 26px}
@media(max-width:760px){.story-reading{font-size:19px;line-height:1.8}.story-reading p:first-child{font-size:21px}}

.art-solo{background:#dedbdc url('/art/solo-estabas-tu.jpg') center/cover}
.art-solo.article-hero{height:auto;min-height:0;aspect-ratio:1440/900}
.solo-reading .story-turn{margin-top:48px;padding-top:36px}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
