/* Fundación Alberto Cruz — medidas tomadas del sitio publicado en Duda (escritorio a 1920 px). v2 */
:root{
  --ink:#2D2E32; --muted:#636364; --line:#E3E3E3; --foot:#E5E5E5; --band:#2D2E32;
  --font:"Montserrat","Montserrat Fallback",system-ui,-apple-system,"Segoe UI",sans-serif;
  --pad:24px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.2;color:var(--ink);background:#fff}
img{max-width:100%;height:auto;display:block}
picture{display:block}
a{color:inherit}
h1,h2,h3,p,figure{margin:0}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:8px;background:#000;color:#fff;padding:8px 14px;z-index:100}
.skip:focus{left:8px}
:focus-visible{outline:2px solid #000;outline-offset:2px}

/* Header: 85 px, fijo arriba */
.header{position:sticky;top:0;z-index:20;background:#fff}
.header-in{display:flex;align-items:center;justify-content:space-between;height:85px;padding:0 calc(7.8125vw - (100vw - 100%)) 0 7.9167vw}
.logo img{width:297px;height:53px}
.nav{display:flex}
.nav a{text-decoration:none;font-size:16px;letter-spacing:.48px;padding:0 20px;color:#000;line-height:29px}
.nav a span{display:inline-block;border-bottom:1px solid transparent;line-height:24px}
.nav a:hover span,.nav a[aria-current] span{border-bottom-color:#000}
.menu-btn{display:none;background:none;border:0;width:44px;height:44px;cursor:pointer;position:relative}
.menu-btn span,.menu-btn span::before,.menu-btn span::after{position:absolute;left:8px;width:28px;height:2px;background:#000;content:"";transition:transform .2s}
.menu-btn span{top:21px}.menu-btn span::before{top:-8px;left:0}.menu-btn span::after{top:8px;left:0}
.menu-btn[aria-expanded=true] span{background:transparent}
.menu-btn[aria-expanded=true] span::before{transform:translateY(8px) rotate(45deg)}
.menu-btn[aria-expanded=true] span::after{transform:translateY(-8px) rotate(-45deg)}

/* Columnas de contenido (posiciones de Duda respecto al centro de la página) */
main{min-height:calc(100vh - 85px - 232px);padding-bottom:40px}
.col{--l:max(var(--pad),calc(50vw - 522px));margin-left:var(--l);width:min(1150px,calc(100% - var(--l) - var(--pad)))}
.col-in{--l:max(var(--pad),calc(50vw - 539px))}
.col-expo{--l:max(var(--pad),calc(50vw - 575px))}
.title{font-size:28px;font-weight:700;line-height:34px;margin:40px 0 15px 2px}
.text p+p,.text p+ul,.text ul+p{margin-top:22px}
.text a{text-underline-offset:2px}
.lh-wide p{line-height:22px}
.list{margin:22px 0 0;padding-left:1.2em}
.list li{margin:0 0 6px}
.h-3{font-size:18px;font-weight:700;line-height:22px;margin:40px 0 22px}
.h-4{font-size:20px;font-weight:700;line-height:24px;margin:96px 0 24px 1px}
.accs+.h-4{margin-top:57px}
.h-4+p{margin-top:0}

/* Botones tipo píldora */
.buttons{display:flex;flex-wrap:wrap;gap:24px;margin:41px 0 0 32px}
.btn{display:inline-flex;align-items:center;justify-content:center;width:245px;height:41px;border-radius:50px;background:var(--band);color:#fff;text-decoration:none;font-size:14px}
.btn:hover{background:#000}
.pre-btn{margin:24px 0 0 16px!important;font-size:18px;line-height:22px}

/* Acordeones */
.accs{margin:33px 0 0 -12px;width:min(1086px,100%)}
.accs-out{margin:41px 0 0 -32px;width:min(1106px,calc(100% + 32px))}
.acc{border-bottom:1px solid var(--line)}
.acc summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;height:62px;padding:0 25px 0 16px;font-weight:700;font-size:18px}
.accs-out .acc summary{font-size:20px}
.acc summary::-webkit-details-marker{display:none}
.acc summary i{position:relative;width:14px;height:14px;flex:none}
.acc summary i::before,.acc summary i::after{content:"";position:absolute;background:var(--ink)}
.acc summary i::before{left:0;right:0;top:6.5px;height:1px}
.acc summary i::after{top:0;bottom:0;left:6.5px;width:1px}
.acc[open] summary i::after{display:none}
.acc-body{padding:16px}
.acc-body p+p{margin-top:19px}
.acc-body p.name+p,.text p.name+p{margin-top:0}
.acc-sm summary{font-size:15px}
.acc-sm .acc-body{font-size:14px;line-height:18px}
.acc-sm .acc-body p+p{margin-top:0}

/* Franja oscura superior */
.band{background:var(--band);margin-top:40px;display:flex;justify-content:center;align-items:center;overflow:hidden}
.band-home{margin-top:80px;padding:0 var(--pad)}
.home-art{padding:100px var(--pad) 18px;display:flex;justify-content:center}
.home-art picture{width:min(759px,100%)}
.home-art img{width:100%;height:auto}
.home-art+.band-home{margin-top:41px}
.band-video{width:min(1282px,100%);aspect-ratio:1282/548;background:#000}
.band-video iframe,.video iframe{width:100%;height:100%;border:0;display:block}
.band-expo{height:320px}
.band-expo picture{width:min(688px,100%);height:320px}
.band-expo img{width:100%;height:100%;object-fit:cover}
.band-yt{height:396px}
.band-yt iframe{width:min(688px,100%);height:396px;border:0}
.band-bg{height:412px}
.bgvideo{width:727px;height:540px;flex:none;pointer-events:none}
.bgvideo iframe{width:100%;height:100%;border:0}
.expo-title{font-size:16px;font-weight:700;line-height:19px;margin:40px 0 0}
.t-expo .text>p{max-width:1133px}
.text-18 .text>p{font-size:18px;line-height:22px}
.text-18 .expo-title{margin-bottom:22px}

/* Imágenes, video y galerías */
.fig{margin:0}
.fig picture{aspect-ratio:1150/650}
.fig img{width:100%;height:100%;object-fit:cover}
.video{width:min(644px,100%);aspect-ratio:644/363;margin:24px auto 0;background:#000}
.cover-small{width:192px;height:254px;margin:0 0 24px 10px;overflow:hidden}
.gallery+.cover-small{margin-top:96px}
.cover-small picture,.cover-small img{width:100%;height:100%;object-fit:cover}
.gallery{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);gap:4px;margin:0}
p+.gallery{margin-top:24px}
.gallery-item{display:block;height:296px;overflow:hidden;background:#f2f2f2}
.gallery-item picture{width:100%;height:100%}
.gallery-item img{width:100%;height:100%;object-fit:cover}

/* Carrusel de la colección */
.slider{margin:40px 0 0 max(0px,calc(50vw - 590px));width:min(1168px,100%);overflow:hidden;position:relative}
.slider-dots{position:absolute;left:0;right:0;bottom:24px;display:flex;justify-content:center;gap:10px;opacity:0;visibility:hidden;transition:opacity .3s}
.slider:hover .slider-dots,.slider:focus-within .slider-dots{opacity:1;visibility:visible}
.slider-dots button{flex:0 1 8px;min-width:0;width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#CED6D9;cursor:pointer}
.slider-dots button.on{background:#fff}
.slider-track{display:flex;transition:transform 1s ease-in-out}
.slide{flex:0 0 100%;height:410px}
.slide picture,.slide img{width:100%;height:100%;object-fit:contain}

/* Nosotros: equipo */
.team-title{font-size:20px;font-weight:700;line-height:24px;margin:53px 0 28px -13px}
.team{display:flex;flex-wrap:wrap;gap:24px 20px;margin-left:19px}
.member{width:124.5px}
.member picture{width:100%;aspect-ratio:1/1}
.member img{width:100%;height:100%;object-fit:cover}
.member figcaption{padding-top:9px;display:flex;flex-direction:column}
.member strong{font-weight:700}

/* Exposiciones y actividades: filas imagen + texto */
.rows{margin-top:61px;display:flex;flex-direction:column;gap:40px}
.row{display:flex;align-items:flex-start}
.rows-expo{margin-left:max(var(--pad),calc(50vw - 539px));margin-right:var(--pad)}
.rows-act{margin-left:max(var(--pad),calc(50vw - 572px));margin-right:var(--pad)}
.row-expo .row-img{flex:0 1 603px;margin-right:64px}
.row-expo .row-text{flex:0 1 446px;min-width:0}
.row-act{align-items:stretch}
.row-act .row-img{flex:0 1 565px;margin-right:32px}
.row-act .row-text{flex:0 1 549px;min-width:0;display:flex;flex-direction:column;padding:8px 0}
.row-img img{width:100%}
.row-expo .row-img img{height:313px;object-fit:cover}
.row-expo:nth-child(3) .row-img img,.row-expo:nth-child(4) .row-img img{height:272px}
.row-act .row-img img{height:281px;object-fit:contain;object-position:50% 0}
.row-text h2{font-size:18px;font-weight:700;line-height:21.5px}
.row-text h2 a{text-decoration:none}
.row-body{margin-top:18px}
.row-act .row-body{margin-top:6px}
.row-body p+p{margin-top:22px}
.row-meta{margin-top:23px;font-size:12px;line-height:15px;padding-bottom:30px}
.row-meta p+p{margin-top:23px}
.row-act .row-meta{margin-top:auto;padding:24px 0 0}
.row-act .row-meta p+p{margin-top:7px}
.row-meta a{text-decoration:none}
.row-meta a:hover{text-decoration:underline}

/* Publicaciones */
.pubs{display:grid;grid-template-columns:repeat(4,292px);row-gap:60px;margin:66px 0 10px max(var(--pad),calc(50vw - 570px))}
.pub{display:flex;flex-direction:column;text-decoration:none;text-align:center}
.pub-cover{flex:1;display:flex;align-items:center;justify-content:center;min-height:240px}
.pub:nth-child(n+5) .pub-cover{min-height:280px}
.pub-cover picture{width:var(--w,225px)}
.pub-title{display:block;font-size:18px;line-height:22px;margin-top:20px;min-height:66px;padding:0 12px}
.pub-detail{display:grid;grid-template-columns:390px 590px;column-gap:89px;align-items:start;margin:41px 0 31px max(var(--pad),calc(50vw - 495px))}
.pub-detail-cover{padding-top:82px}
.pub-detail-cover picture{aspect-ratio:390/409}
.pub-detail-cover img{width:100%;height:100%;object-fit:contain}
.pub-detail-cover .buttons{margin:10px 0 0;justify-content:center}
.pub-detail-cover .btn{width:150px}
.pub-detail-text.accs{margin:0;width:auto}

/* Footer */
.footer{background:var(--foot);font-size:14px;line-height:18px}
.footer-in{max-width:1200px;margin:0 0 0 max(0px,calc(50vw - 600px));padding:42px 20px 27px;display:grid;grid-template-columns:412px 412px 1fr;grid-template-rows:auto auto}
.footer h2{font-size:14px;font-weight:700;line-height:18px;margin:0 0 5px}
.f-about p{max-width:392px}
.f-dir h2{margin-bottom:7px}
.f-dir p{max-width:376px}
.f-news{grid-row:1 / span 2;grid-column:3}
.f-copy{grid-column:1 / span 2;grid-row:2;align-self:end;font-weight:300;color:var(--muted);margin:14px 0 4px}
.newsletter{width:303px;margin-top:31px;display:flex;flex-direction:column}
.newsletter input[type=email]{width:301px;max-width:100%;height:30px;padding:0 10px;font:inherit;color:var(--ink);background:transparent;border:0;border-bottom:1px solid var(--ink);border-radius:0;outline-offset:2px}
.newsletter input::placeholder{color:var(--ink);opacity:1}
.newsletter button{align-self:flex-end;margin-top:25px;width:88px;height:35px;border:0;border-radius:50px;background:var(--band);color:#fff;font:400 12px var(--font);cursor:pointer}
.newsletter button:hover{background:#000}
.newsletter button[disabled]{opacity:.6;cursor:wait}
.nl-msg{font-size:12px;line-height:15px}
.nl-msg:empty{display:none}
.nl-msg.ok{color:#1d6b35}.nl-msg.err{color:#9b1c1c}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.f-social{display:flex;gap:5px;margin:1px 0 0 2px}
.f-social a{display:flex;align-items:center;justify-content:center;width:22px;height:27px;color:#000}

/* Visor de fotos */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:50;display:flex;align-items:center;justify-content:center}
.lightbox[hidden]{display:none}
.lightbox img{max-width:92vw;max-height:88vh;object-fit:contain}
.lightbox button{position:absolute;background:none;border:0;color:#fff;font-size:44px;line-height:1;cursor:pointer;padding:12px 18px;opacity:.85}
.lightbox button:hover{opacity:1}
.lb-close{top:10px;right:10px}.lb-prev{left:6px;top:50%;transform:translateY(-50%)}.lb-next{right:6px;top:50%;transform:translateY(-50%)}

/* Pantallas medianas */
@media (max-width:1300px){
  .footer-in{margin-left:0}
  .pubs{grid-template-columns:repeat(4,1fr);margin-right:var(--pad)}
  .pub-detail{grid-template-columns:minmax(0,390px) minmax(0,590px);column-gap:48px;margin-right:var(--pad)}
  .footer-in{grid-template-columns:1fr 1fr 303px;column-gap:24px}
  .accs,.accs-out{margin-left:0;width:100%}
  .team-title{margin-left:0}.team{margin-left:0}
}
@media (max-width:1024px){
  .header-in{padding:0 24px}
  .logo img{width:220px;height:auto}
  .nav a{padding:0 12px}
  .gallery{grid-template-columns:repeat(min(var(--cols,4),3),1fr)}
}

/* Móvil: medidas tomadas del sitio publicado en Duda a 390 px de ancho */
@media (max-width:767px){
  :root{--pad:25px}
  .header-in{height:67px;padding:0 24px 0 8px}
  .logo img{width:195px;height:35px}
  .menu-btn{display:block;width:30px;height:30px}
  .menu-btn span,.menu-btn span::before,.menu-btn span::after{left:1px;width:28px;height:1.5px}
  .menu-btn span{top:14px}
  .nav{position:fixed;inset:67px 0 auto 0;flex-direction:column;background:#fff;padding:8px 24px 24px;border-bottom:1px solid var(--line);display:none}
  .nav.open{display:flex}
  .nav a{padding:10px 0;font-size:16px}
  main{min-height:0;padding-bottom:40px}
  .col,.col-in,.col-expo{--l:25px;margin-left:25px;width:calc(100% - 46px)}
  .title{font-size:22px;line-height:27px;margin:40px 0 30px 0}
  .text p+p,.text p+ul,.text ul+p{margin-top:19px}
  .lh-wide p+p{margin-top:22px}
  .intro-expo .text p,.t-pubs .text p{line-height:22px}
  .h-3{font-size:16px;line-height:19px;margin:35px 0 19px}
  .h-4{font-size:18px;line-height:22px;margin:96px 0 24px}
  .accs+.h-4{margin-top:79px}

  /* Portada */
  .home-art{padding:44px 31px 0}
  .home-art+.band-home{margin-top:44px}
  .band-home{margin-top:40px;padding:8px 5px}
  .band-video{aspect-ratio:365/326}

  /* Franja de exposición */
  .band{margin-top:40px}
  .band-expo{height:240px}
  .band-expo picture{width:calc(100% - 14px);height:240px}
  .band-yt{height:396px}.band-yt iframe{width:calc(100% - 14px);height:396px}
  .band-bg{display:none}
  .band-bg+.col-expo .expo-title{margin-top:80px}
  .expo-title{margin-top:40px}
  .col-expo{margin-left:27px;width:calc(100% - 47px)}
  .col-expo .h-4,.col-expo .gallery,.col-expo .fig,.col-expo .h-4~p{margin-left:-2px}

  /* Acordeones */
  .accs,.accs-out{margin:49px 0 0 4px;width:calc(100% - 4px)}
  .accs-out{margin-left:21px;width:calc(100% - 25px)}
  .acc summary{font-size:14px;padding:0 16px}
  .accs-out .acc summary{font-size:18px}
  .acc-body{font-size:13px;line-height:16px}
  .acc-body p+p{margin-top:16px}
  .acc-sm summary{font-size:15px}
  .acc-sm .acc-body{font-size:11px;line-height:14px}

  /* Botones */
  .pre-btn{margin:24px 0 0!important;text-align:center;font-size:16px;line-height:19px}
  .buttons{margin:41px 0 0;gap:23px;justify-content:center;flex-wrap:nowrap}
  .btn{width:132px;font-size:16px}

  /* Galerías, fotos y video */
  .gallery{grid-template-columns:repeat(2,1fr);gap:0}
  .gallery[style*="--cols:3"]{grid-template-columns:repeat(3,1fr)}
  .gallery-item{height:auto;aspect-ratio:1/1}
  .fig picture{aspect-ratio:329/240}
  .video{width:min(320px,100%);aspect-ratio:320/203;margin-top:26px}
  .cover-small{width:230px;height:301px;margin:0 auto 24px}

  /* Carrusel de la colección */
  .slider{margin:41px auto 0;width:calc(100% - 62px)}
  .slide{height:410px;aspect-ratio:auto}
  .slider-dots{opacity:1;visibility:visible;gap:8px}

  /* Equipo */
  .team-title{font-size:18px;line-height:22px;margin:70px 0 28px 14px}
  .team{gap:28px 17px;margin:0 0 0 -10px;width:calc(100% + 20px)}
  .member{width:calc(50% - 8.5px)}
  .member figcaption{padding-top:7px}

  /* Exposiciones y actividades */
  .rows{margin-top:54px;gap:36px}
  .rows-expo{margin-left:26px;margin-right:24px}
  .rows-act{margin-left:23px;margin-right:23px;margin-top:75px;gap:76px}
  .row{flex-direction:column;align-items:stretch}
  .row .row-img{flex:none;margin:0 0 19px;width:100%}
  .row-expo .row-img img,.row-expo:nth-child(3) .row-img img,.row-expo:nth-child(4) .row-img img{height:auto;aspect-ratio:325/185}
  .row-act .row-img{margin:0 4px 37px 23px;width:auto}
  .row-act .row-img img{height:auto;aspect-ratio:302/156}
  .row .row-text{flex:none;width:auto;padding:0}
  .row-expo .row-text{padding:0 5px}
  .row-text h2{font-size:16px;line-height:19px}
  .row-body{margin-top:30px}
  .row-body p+p{margin-top:19px}
  .row-meta{margin-top:18px;padding-bottom:0}
  .row-meta p+p{margin-top:18px}
  .row-act .row-text{min-height:250px}
  .row-act .row-body{margin-top:31px}
  .row-act .row-meta{margin-top:auto;padding-top:20px}
  .row-act .row-meta p+p{margin-top:0}

  /* Publicaciones */
  .pubs{grid-template-columns:1fr;row-gap:36px;margin:60px 25px 10px}
  .pub-cover,.pub:nth-child(n+5) .pub-cover{min-height:0}
  .pub-cover picture{width:min(326px,100%)}
  .pub:first-child .pub-cover picture{width:225px}
  .pub-title{font-size:16px;line-height:19px;margin-top:16px;min-height:0;padding:0}
  .pub-detail{grid-template-columns:1fr;row-gap:0;margin:42px 19px 1px 31px}
  .pub-detail-cover{padding-top:0}
  .pub-detail-cover picture{aspect-ratio:327/304}
  .pub-detail-cover .buttons{margin:198px 0 13px}
  .pub-detail-cover .btn{width:150px;height:44px}
  .pub-detail-text.accs{margin:0 0 0 5px;width:auto}

  /* Footer */
  .footer-in{display:block;margin:0;padding:58px 32px 12px;text-align:center}
  .f-about p,.f-dir p{max-width:none}
  .f-dir{margin-top:57px}
  .f-news{margin-top:56px}
  .newsletter{width:242px;margin:31px auto 0;align-items:center}
  .newsletter input[type=email]{width:242px}
  .newsletter button{align-self:center;width:200px}
  .f-social{justify-content:flex-start;margin:12px 0 0 60px}
  .f-copy{text-align:left;margin:18px 40px 0 0}
}
