.page-portafolio .project-grid.web-carousel-track{display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;align-items:stretch;padding:3px 0 8px}
.web-carousel-track::-webkit-scrollbar{display:none}
.web-carousel-slide{flex:0 0 100%;min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,auto);gap:26px 20px;align-content:start;scroll-snap-align:start}
.web-carousel-shell{position:relative}
.web-carousel-shell>.video-carousel-button{position:absolute;top:var(--web-arrow-y,50%);transform:translateY(-50%);z-index:3;background:var(--paper);box-shadow:0 3px 12px #11172212}
.web-carousel-shell>.video-carousel-button:hover{background:var(--ink);color:#fff}
.web-carousel-prev{left:-23px}.web-carousel-next{right:-23px}
.web-carousel-slide .project-caption h3{font-size:18px;line-height:1.25}
.web-carousel-slide .project-card{min-width:0}
.web-carousel-slide .project-thumb{aspect-ratio:1.78}
.web-carousel-track:focus-visible{outline:3px solid var(--blue);outline-offset:5px}
.web-carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px}
.web-carousel-controls[hidden]{display:none}
@media(max-width:1199px){.web-carousel-slide{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.web-carousel-prev{left:-12px}.web-carousel-next{right:-12px}}
@media(max-width:767px){.web-carousel-slide{gap:32px 14px}.web-carousel-controls .video-carousel-hint{max-width:200px}.web-carousel-prev{left:0}.web-carousel-next{right:0}.web-carousel-slide .project-caption h3{font-size:clamp(13.5px,3.6vw,16px)}}

/* Browser previews and a separate, safe navigation rail. */
.web-carousel-shell{padding-inline:64px}
.page-portafolio .project-grid.web-carousel-track{padding:4px 0 12px}
.web-carousel-slide{gap:22px 18px;align-items:stretch}
.page-portafolio .web-carousel-slide .project-card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d8deea;border-radius:14px;box-shadow:0 4px 14px #17244306;cursor:default}
.web-browser-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:29px;padding:7px 11px;background:#f8f9fc;border-bottom:1px solid #e5e8ef}
.web-browser-dots{display:flex;gap:4px}.web-browser-dots i{width:5px;height:5px;border-radius:50%;background:#c6ccd8}.web-browser-dots i:first-child{background:#8ca3e5}
.web-project-category{font-size:9px;line-height:1.3;color:#626a78;text-align:right}
.page-portafolio .web-carousel-slide .project-thumb{border:0;border-radius:0;aspect-ratio:1.65;background:#eef1f6;flex:none}
.page-portafolio .web-carousel-slide .project-thumb img{width:100%;height:100%;object-fit:cover;object-position:top;transform:none}
.page-portafolio .web-carousel-slide .project-caption{display:flex;flex:1;flex-direction:column;align-items:stretch;justify-content:space-between;gap:12px;padding:13px;margin:0;min-width:0;min-height:114px}
.page-portafolio .web-carousel-slide .project-caption h3{font-size:16px;line-height:1.35;letter-spacing:-.025em;min-height:43px;overflow-wrap:break-word}
.web-visit{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:9px 12px;border:1px solid #d8e0f5;border-radius:8px;background:#f1f4fc;color:#284be0;font-size:11px;font-weight:550;line-height:1.4;transition:background .18s,color .18s}
.web-visit:hover{background:var(--blue);color:white;border-color:var(--blue)}.web-visit:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.web-carousel-controls{padding-top:14px;border-top:1px solid #d9deea;margin-top:8px}
.web-carousel-controls .video-carousel-hint{font-size:11px}
.web-carousel-shell>.video-carousel-button{left:0;width:44px;height:44px;box-shadow:none;border-color:#bfc9dd}
.web-carousel-shell>.web-carousel-next{left:auto;right:0}
@media(min-width:1200px){.web-carousel-slide[data-count="5"]>.project-card:last-child{grid-column:2/span 2;width:calc((100% - 18px)/2);justify-self:center}}
@media(max-width:1199px){.web-carousel-shell{padding-inline:0}.web-carousel-slide{gap:22px}.web-carousel-slide[data-count="3"]>.project-card:last-child{grid-column:1/span 2;width:calc((100% - 22px)/2);justify-self:center}.web-carousel-controls .video-carousel-navigation{gap:10px}}
@media(max-width:767px){.web-carousel-slide{gap:16px 12px}.web-carousel-slide[data-count="3"]>.project-card:last-child{width:calc((100% - 12px)/2)}.page-portafolio .web-carousel-slide .project-caption{padding:10px;gap:10px;min-height:114px}.page-portafolio .web-carousel-slide .project-caption h3{font-size:13px;min-height:36px}.web-browser-bar{padding:6px 8px;min-height:27px}.web-project-category{font-size:8px}.web-visit{padding:8px;font-size:10px}.web-carousel-controls .video-carousel-hint{max-width:105px;font-size:10px}.web-carousel-controls .video-carousel-navigation{gap:6px}}
@media(prefers-reduced-motion:reduce){.web-visit{transition:none}}
