body.am-reels-library-page{background:#f6f6fa}
body.am-reels-library-page .am-nav{background:rgba(255,255,255,.96)}
.am-reels-page{min-height:60vh;background:#f6f6fa;color:#111113}
.am-reels-hero{box-sizing:border-box;padding:64px clamp(24px,5vw,72px) 30px}
.am-reels-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,360px);align-items:end;gap:48px;width:100%;max-width:1500px;margin:0 auto}
.am-reels-copy{max-width:930px;align-self:start}
.am-reels-kicker{display:flex;align-items:center;gap:10px;margin:0 0 14px;color:#5552ff;font:600 12px/1.3 "Rethink Sans",sans-serif;letter-spacing:.17em;text-transform:uppercase}
.am-reels-kicker span{width:8px;height:8px;border-radius:50%;background:#5552ff}
.am-reels-copy h1 span{display:block}
.am-reels-copy h1{max-width:920px;margin:0;font:600 clamp(44px,4vw,55px)/1 "Rethink Sans",sans-serif;letter-spacing:-.035em}
.am-reels-lede{max-width:360px;margin:0 0 5px;text-wrap:balance;color:#505058;font:400 18px/1.65 "Rethink Sans",sans-serif}
.am-reels-index{display:flex;align-items:baseline;gap:9px;flex:none;padding-bottom:7px;color:#696871;font:400 14px/1.3 "Rethink Sans",sans-serif}
.am-reels-index strong{color:#111113;font-size:42px;font-weight:500;letter-spacing:-.06em}
.am-reels-library{max-width:1500px;margin:0 auto;padding:0 clamp(24px,5vw,72px) 88px}
.am-reels-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 0 22px;border-top:1px solid #dedee5}
.am-reels-filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.am-reels-filter{min-height:44px;padding:10px 17px;border:1px solid #d2d2da;border-radius:999px;background:transparent;color:#17171a;font:500 14px/1 "Rethink Sans",sans-serif;cursor:pointer;transition:background .2s,border-color .2s,color .2s,transform .2s}
.am-reels-filter:hover{border-color:#5552ff;transform:translateY(-1px)}
.am-reels-filter.is-active{border-color:#5552ff;background:#5552ff;color:#fff}
.am-reels-filter:focus-visible,.am-reel-play:focus-visible{outline:2px solid #171719;outline-offset:3px}
.am-reels-filters[hidden]{display:none}
.am-reels-count{margin:0 0 0 auto;color:#696871;font:400 14px/1.4 "Rethink Sans",sans-serif}
.am-reels-count strong{color:#111113;font-weight:600}
.am-reels-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 18px;margin:0 auto}
.am-reel-card[hidden]{display:none}
.am-reel-media{position:relative;overflow:hidden;aspect-ratio:9/16;border-radius:18px;background:#111113;isolation:isolate}
.am-reel-video{display:block;width:100%;height:100%;object-fit:cover;background:#111113}
.am-reel-play{position:absolute;top:50%;left:50%;display:grid;width:76px;height:76px;place-items:center;padding:0;border:1px solid #ffffff80;border-radius:50%;background:#ffffffeb;color:#111113;box-shadow:0 12px 36px #0003;transform:translate(-50%,-50%);cursor:pointer;transition:transform .25s,background .25s,opacity .2s}
.am-reel-play svg{width:28px;height:28px;margin-left:3px}
.am-reel-play:hover{background:#fff;transform:translate(-50%,-50%) scale(1.06)}
.am-reel-card.is-playing .am-reel-play{opacity:0;pointer-events:none}
.am-reel-media{cursor:pointer}
.am-reel-duration{position:absolute;right:14px;bottom:14px;padding:7px 10px;border:1px solid #ffffff40;border-radius:999px;background:#111113b8;color:#fff;font:500 12px/1 "Rethink Sans",sans-serif;backdrop-filter:blur(8px);pointer-events:none}
.am-reel-info{display:flex;flex-direction:column;align-items:stretch;margin-top:16px}
.am-reel-cat{color:#5552ff;font:600 11px/1.3 "Rethink Sans",sans-serif;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.am-reel-detail{margin:6px 0 0;color:#6c6b73;font:400 14px/1.4 "Rethink Sans",sans-serif}
.am-reel-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-top:6px}
.am-reel-title-row h2,.am-reel-title-row h3{margin:0;font:500 23px/1.25 "Rethink Sans",sans-serif;letter-spacing:-.025em}
.am-reel-title-row>span{color:#85848b;font:400 14px/1 "Rethink Sans",sans-serif}
@media(max-width:900px){
	.am-reels-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 8px}
	.am-reels-library{padding-left:10px;padding-right:10px}
	.am-reels-toolbar{padding-left:14px;padding-right:14px}
	.am-reel-media{border-radius:12px}
	.am-reel-info{margin-top:10px}
	.am-reel-cat{font-size:10px;letter-spacing:.07em}
	.am-reel-detail{margin-top:3px;font-size:12px;line-height:1.35}
	.am-reel-title-row{margin-top:4px}
	.am-reel-title-row h2,.am-reel-title-row h3{font-size:16px}
	.am-reel-title-row>span{font-size:12px}
	.am-reel-play{width:46px;height:46px}
	.am-reel-play svg{width:20px;height:20px}
	.am-reel-duration{right:8px;bottom:8px;padding:5px 7px;font-size:10px}
}
@media(max-width:767px){
	.am-reels-hero{padding:36px 24px 26px}
	.am-reels-hero-inner{grid-template-columns:1fr;gap:16px}
	.am-reels-copy h1{font-size:clamp(32px,8vw,44px);line-height:1.05;letter-spacing:-.03em}
	.am-reels-kicker{margin-bottom:15px;font-size:10px;letter-spacing:.14em}
	.am-reels-lede{max-width:36ch;margin:0;font-size:17px;line-height:1.6}
	.am-reels-index{flex-direction:column;gap:0;padding-top:3px;text-align:right}
	.am-reels-index strong{font-size:30px}
	.am-reels-index span{font-size:11px}
	.am-reels-library{padding-bottom:64px}
	.am-reels-toolbar{align-items:flex-start;flex-direction:column;gap:14px;padding:18px 0 22px}
	.am-reels-filters{gap:7px}
	.am-reels-filter{min-height:40px;padding:9px 13px;font-size:13px}
	.am-reels-count{display:none}
}
@media(max-width:380px){.am-reels-hero-inner{gap:10px}.am-reels-index strong{font-size:26px}.am-reels-index span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.am-reels-filter,.am-reel-play{transition:none}}

/* Sección destacada del Home */
.am-reels-home{box-sizing:border-box;padding:clamp(56px,7vw,104px) clamp(24px,5vw,72px)}
.am-reels-home .am-svcs-head{max-width:1500px;margin:0 auto clamp(28px,3.5vw,48px)}
.am-reels-grid-home{max-width:1500px}
@media(max-width:900px){
	.am-reels-home{padding-left:0;padding-right:0}
	.am-reels-home .am-svcs-head{padding-left:24px;padding-right:24px}
	.am-reels-grid-home{padding-left:10px;padding-right:10px}
}

/* Páginas de proyectos y de motion: mismo lenguaje que las fichas (título grande, placas metálicas y marcos con brillo violeta). */
.am-project-eyebrow{margin-bottom:18px}
.am-project-hero-copy h1,.am-reels-copy h1{font-size:clamp(52px,7vw,96px);font-weight:600;line-height:.98;letter-spacing:-.04em;text-wrap:balance}
.am-project-hero-description,.am-reels-lede{max-width:34ch;font-size:clamp(17px,1.5vw,21px);line-height:1.45;color:#5f5e68;text-wrap:pretty}
.am-project-hero-bottom .am-proj-tab,.am-reels-filter{border:1px solid rgba(17,17,19,.1);background:linear-gradient(150deg,#fcfcfd 0%,#e8e8ef 100%);box-shadow:inset 0 1px 0 #fff,-6px 10px 18px -14px rgba(85,82,255,.55);color:#17171a}
.am-project-hero-bottom .am-proj-tab:hover,.am-project-hero-bottom .am-proj-tab:focus-visible,.am-reels-filter:hover{border-color:rgba(85,82,255,.45)}
.am-project-hero-bottom .am-proj-tab.am-on,.am-reels-filter.is-active{border-color:#5552ff;background:#5552ff;box-shadow:none;color:#fff}
.am-project-page .am-pj-media,.am-reel-media{box-sizing:border-box;padding:10px;border:1px solid rgba(255,255,255,.9);border-radius:28px;background:linear-gradient(145deg,#f7f7fa 0%,#cfcfda 52%,#ebeaf2 100%);box-shadow:inset 0 1px 0 #fff,-9px 22px 34px -22px rgba(48,40,88,.45);overflow:hidden}
.am-project-page .am-pj-media .am-pj-img{border-radius:19px}
.am-project-page .am-pj-slug{left:24px;right:24px;bottom:24px}
.am-reel-video{border-radius:19px}
.am-reel-duration{right:24px;bottom:24px}
.am-reel-play{box-shadow:0 12px 30px rgba(17,17,19,.25)}
@media(hover:hover){
	.am-project-page .am-pj,.am-reel-card{transition:transform .3s cubic-bezier(.22,1,.36,1)}
	.am-project-page .am-pj:hover,.am-reel-card:hover{transform:translateY(-6px)}
}
.am-pj-slug[hidden],.am-pj-slug span[hidden]{display:none}
@media(max-width:767px){
	.am-project-hero-copy h1,.am-reels-copy h1{font-size:clamp(40px,12vw,56px)}
	.am-project-page .am-pj-media,.am-reel-media{padding:7px;border-radius:22px}
	.am-project-page .am-pj-media .am-pj-img,.am-reel-video{border-radius:16px}
	.am-project-page .am-pj-slug{left:16px;right:16px;bottom:16px}
	.am-reel-duration{right:16px;bottom:16px}
}
@media(prefers-reduced-motion:reduce){.am-project-page .am-pj,.am-reel-card{transition:none}.am-project-page .am-pj:hover,.am-reel-card:hover{transform:none}}

/* Filtros de proyectos y de motion: sin sombra violeta en reposo; solo con el cursor o el foco. */
.am-project-hero-bottom .am-proj-tab,.am-reels-filter{box-shadow:inset 0 1px 0 #fff;transition:background .2s,border-color .2s,color .2s,box-shadow .25s ease}
.am-project-hero-bottom .am-proj-tab:hover,.am-project-hero-bottom .am-proj-tab:focus-visible,.am-reels-filter:hover,.am-reels-filter:focus-visible{box-shadow:inset 0 1px 0 #fff,-6px 10px 18px -14px rgba(85,82,255,.55)}
.am-project-hero-bottom .am-proj-tab.am-on,.am-reels-filter.is-active{box-shadow:none}

/* Tarjeta de reel sin etiqueta de categoría (no hacía falta sobre el video): debajo quedan título, número y detalle. */
.am-reel-card .am-reel-info{margin-top:18px}
.am-reel-card .am-reel-title-row{margin-top:0}
.am-reel-card .am-reel-detail{margin-top:5px}

/* Reels: el video va posicionado dentro del marco (inset = relleno del marco) y recortado con sus propias esquinas, para que en Safari/iPhone no se salga ni se corte por el borde. */
.am-reel-media{position:relative;transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(white,black)}
.am-reel-media .am-reel-video{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);border-radius:19px;object-fit:cover}
@media(max-width:767px){.am-reel-media .am-reel-video{inset:7px;width:calc(100% - 14px);height:calc(100% - 14px);border-radius:16px}}
