/* Galeria local, mural, venta del libro y pie. No modifica la portada aprobada. */
.ui-icon{width:24px;height:24px;flex:0 0 24px;vertical-align:middle}
.site-footer-v2{background:#202023;color:#f6f6f6}
.site-footer-v2 .footer-main{display:grid;grid-template-columns:1.2fr 1fr auto;gap:56px;align-items:center;padding-block:54px 40px}
.site-footer-v2 .brand-footer{width:100%;max-width:330px}
.site-footer-v2 .brand-footer .brand-logo{width:100%;height:auto;max-width:100%;filter:none}
.site-footer-v2 .footer-community>p{font-size:.86rem;line-height:1.65;margin:0 0 15px;color:#ededed}
.site-footer-v2 .footer-social-icons{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 13px}
.site-footer-v2 .footer-social-icons a{display:inline-flex;align-items:center;gap:9px;min-height:44px;border:1px solid #ffffff38;border-radius:7px;padding:7px 12px;color:#fff;font-size:.84rem;font-weight:600;transition:background .2s,border-color .2s}
.site-footer-v2 .footer-social-icons a:hover{background:#ffffff15;border-color:#ffffffb0;text-decoration:none}
.site-footer-v2 .footer-editorial-links{display:flex;gap:18px;flex-wrap:wrap;font-size:.83rem}
.site-footer-v2 .footer-editorial-links a,.site-footer-v2 .footer-portal,.site-footer-v2 .footer-bottom a{border:0;padding-block:7px;min-height:32px;text-underline-offset:5px}
.site-footer-v2 .footer-editorial-links a:hover,.site-footer-v2 .footer-portal:hover,.site-footer-v2 .footer-bottom a:hover{text-decoration:underline;color:#fff}
.site-footer-v2 .footer-portal{font-size:.84rem}
.site-footer-v2 .footer-bottom{border-top:1px solid #ffffff28;padding-block:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:22px;color:#ddd;font-size:.75rem}
.site-footer-v2 a::after{content:none!important}
.social-channel-link{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;font-weight:700;padding-block:9px;color:var(--red)}
.social-channel-link:hover{text-decoration:underline;text-underline-offset:6px}
.collection-intro{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:22px 0 28px;border-top:1px solid var(--line)}
.collection-intro p{margin:0;max-width:760px;color:var(--muted);font-size:.95rem}
.collection-badge{flex-shrink:0;border:1px solid var(--line);border-radius:5px;padding:8px 12px;font-size:.69rem;letter-spacing:.1em;font-weight:700}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.collection-card{display:block;min-width:0;background:white;border:1px solid #e3e3e3;border-radius:7px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.collection-card:hover{border-color:#9f9fa4;box-shadow:0 7px 22px #20202312}
.collection-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:4/3;background:#f2f1ef;position:relative;overflow:hidden}
.collection-image>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;filter:none;transform:none}
.collection-enlarge{display:flex;position:absolute;bottom:12px;right:12px;width:36px;height:36px;align-items:center;justify-content:center;border-radius:50%;background:#ffffffed;color:#202023;box-shadow:0 2px 6px #0002}
.collection-enlarge .ui-icon{width:19px;height:19px;flex-basis:19px}
.collection-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;color:#39393e}
.collection-caption>span{font-size:.64rem;letter-spacing:.12em;font-weight:700}
.collection-caption>b{font-size:.72rem;font-weight:500;color:#69696f}
.collection-more{text-align:center;padding:28px 0 6px}
.collection-more p{font-size:.85rem;color:var(--muted);margin-bottom:12px}
.collection-source{font-size:.78rem;color:var(--muted);padding-top:25px;margin:0}
.collection-art{border-top:1px solid var(--line);margin-top:35px;padding-top:20px}
.collection-art>summary{cursor:pointer;font-weight:600;padding:12px 0}
.collection-art>.gallery-grid{max-width:700px;margin-top:20px;gap:20px}
.collection-art .gallery-item>img{aspect-ratio:4/5;object-fit:contain;transform:none;background:#f5f5f4}
.collection-home{padding-block:76px}
.collection-home .section-head{align-items:center}
.collection-home .section-head h2{font-size:clamp(2.4rem,4vw,3.5rem)}
.photo-viewer{color:#f8f8f8;background:#161719;padding:0;border:1px solid #ffffff2a;border-radius:9px;width:min(1440px,calc(100vw - 48px));max-width:calc(100vw - 32px);height:min(940px,calc(100dvh - 48px));max-height:calc(100dvh - 24px);overflow:hidden;box-shadow:0 30px 100px #0007}
.photo-viewer[open]{display:flex;flex-direction:column}
.photo-viewer::backdrop{background:#08080aec;backdrop-filter:blur(5px)}
.photo-viewer-top{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 22px;border-bottom:1px solid #ffffff20;flex-shrink:0}
.photo-viewer-top .eyebrow{font-size:.69rem;color:#fff;margin:0 0 3px}
#photo-position{font-size:.8rem;color:#c6c6cc;margin:0;line-height:1.4}
.viewer-control{background:transparent;border:1px solid #ffffff45;color:#fff;border-radius:5px;min-width:44px;min-height:44px;padding:9px;display:inline-flex;gap:7px;align-items:center;justify-content:center;font-size:.75rem;font-weight:600}
.viewer-control .ui-icon{width:21px;height:21px;flex-basis:21px}
.viewer-control:hover{background:#ffffff17;transform:none}
.photo-stage{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:0;overflow:hidden;padding:16px}
.photo-stage>img{display:block;width:100%;height:100%;min-height:0;max-height:100%;max-width:100%;object-fit:contain;filter:none;cursor:zoom-in}
.photo-stage.is-zoomed{display:block;overflow:auto;padding:0}
.photo-stage.is-zoomed>img{width:auto;height:auto;min-width:100%;max-width:none;max-height:none;cursor:zoom-out}
.photo-unavailable{max-width:480px;text-align:center;font-size:1rem;color:#ddd}
.photo-viewer-bottom{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:13px 22px;border-top:1px solid #ffffff20;flex-shrink:0}
.photo-arrows,.photo-viewer-tools{display:flex;gap:8px;align-items:center;flex-shrink:0}
#photo-caption{font-size:.8rem;line-height:1.4;margin:0;text-align:center;color:#e4e4e7}
.mural-feature{padding-bottom:62px;margin-bottom:50px;border-bottom:1px solid var(--line)}
.mural-intro{display:flex;gap:38px;align-items:start;justify-content:space-between;margin:0 0 28px}
.mural-label{display:inline-flex;gap:10px;align-items:center;padding:10px 14px;border-radius:5px;background:#fff1f2;color:#b7132d;font-size:.85rem;font-weight:700;white-space:nowrap}
.mural-intro>p{max-width:670px;margin:0;color:var(--muted);font-size:.94rem}
.mural-frame{margin:0}
.mural-frame>a{display:block;position:relative;background:#f3f2ef;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.mural-frame img{width:100%;height:auto;object-fit:contain;filter:none}
.mural-frame figcaption{margin-top:11px;color:var(--muted);font-size:.77rem}
.mural-zoom{position:absolute;bottom:18px;right:18px;display:inline-flex;align-items:center;gap:8px;background:#fff;padding:10px 15px;box-shadow:0 3px 14px #0002;border-radius:5px;color:#202023;font-size:.8rem;font-weight:700}
.mural-context{margin:16px 0 0;color:var(--muted);font-size:.83rem}
.official-image-fallback{padding:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#45454d;background:#f3f2ee}
.official-image-fallback strong{font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.04em;line-height:1.1;display:block;margin-bottom:22px}
.official-image-fallback p{max-width:440px;font-size:.9rem;line-height:1.6}
.mural-fallback{min-height:390px}
.book-page-heading{max-width:1000px;margin-bottom:48px}
.book-store{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:72px;align-items:start}
.book-cover{margin:0;background:#f5f4f1;padding:30px 32px 22px;border:1px solid #e6e4df;border-radius:9px}
.book-cover>img{height:auto;width:100%;max-height:600px;object-fit:contain;filter:drop-shadow(10px 13px 14px #0002)}
.book-cover>figcaption{font-size:.74rem;text-align:center;letter-spacing:.04em;padding-top:20px;color:var(--muted)}
.book-information>.eyebrow{margin-bottom:14px}
.book-information>h2{font-size:clamp(2rem,3.3vw,3.1rem);line-height:1.08;margin-bottom:14px}
.book-subtitle{font-size:1.25rem;line-height:1.35;color:#46464e}
.book-information>p:not(.eyebrow):not(.book-subtitle){color:var(--muted);font-size:.92rem}
.book-purchase{padding:23px 0 25px;border-block:1px solid var(--line);margin:28px 0}
.book-price{margin:0 0 5px;line-height:1.1}
.book-price>span{font-size:2.6rem;font-weight:700;letter-spacing:-.04em}
.book-price small{font-size:.76rem;color:var(--muted);margin-left:8px}
.book-shipping{font-size:.81rem;color:var(--muted);margin:14px 0 20px}
.book-order{background:var(--red);color:#fff;gap:12px;border:1px solid var(--red)}
.book-order:hover{background:#be0021}
.book-order-help{font-size:.77rem;line-height:1.5;color:var(--muted);max-width:440px;margin:14px 0 0}
.book-facts{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:15px 24px}
.book-facts>div{padding-bottom:12px;border-bottom:1px solid #e5e5e8}
.book-facts dt{font-size:.67rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:2px}
.book-facts dd{font-size:.9rem;font-weight:600;margin:0}
.book-source{margin-top:21px;font-size:.74rem!important}
.book-fallback{min-height:480px;padding:18px 22px}
.book-fallback>.ui-icon{width:50px;height:50px;flex-basis:50px;margin-bottom:25px;color:var(--red)}
.book-history{margin-top:76px;border-top:1px solid var(--line);padding-top:40px;display:flex;gap:30px;align-items:center;justify-content:space-between}
.book-history h2{font-size:clamp(1.8rem,3vw,2.6rem)}
.book-history p:last-child{font-size:.9rem;color:var(--muted);margin:0}
.book-history>.button{flex-shrink:0}
.collection-provenance{padding-block:40px 60px}
.collection-provenance h2{font-size:1.8rem}
.collection-provenance a{text-decoration:underline}
@media(min-width:1600px){.photo-viewer{width:min(1600px,calc(100vw - 80px));height:calc(100dvh - 64px)}}
@media(max-width:1100px){.site-footer-v2 .footer-main{gap:30px;grid-template-columns:1fr 1fr}.site-footer-v2 .footer-portal{grid-column:2}.book-store{gap:38px}.book-cover{padding:22px}.mural-intro{gap:25px}.mural-label{white-space:normal;max-width:300px;flex-shrink:0}}
@media(max-width:800px){.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.collection-home-grid>.collection-card:last-child{display:none}.collection-intro{align-items:start}.collection-badge{font-size:.6rem;padding:8px}.book-store{grid-template-columns:1fr;gap:35px}.book-cover{width:min(440px,100%);margin:auto}.book-cover>img{max-height:510px}.book-page-heading{margin-bottom:32px}.book-history{align-items:start;flex-direction:column}.mural-intro{flex-direction:column;gap:18px}.mural-label{max-width:100%}.site-footer-v2 .footer-main{gap:35px;align-items:start}.site-footer-v2 .footer-bottom{flex-wrap:wrap}.site-footer-v2 .footer-bottom>span{width:100%}.photo-viewer-bottom{gap:12px;padding:10px 14px}.photo-viewer-tools .viewer-with-label>span{display:none}.photo-viewer-tools .viewer-with-label{min-width:44px}.photo-viewer-top{padding:12px 14px}}
@media(max-width:540px){.collection-intro{flex-direction:column;gap:15px}.collection-page .section-head,.collection-home .section-head{align-items:start;flex-direction:column}.collection-grid{grid-template-columns:1fr;gap:19px}.collection-home-grid{grid-template-columns:1fr 1fr;gap:12px}.collection-home-grid .collection-caption{padding:10px 8px}.collection-home-grid .collection-caption>span{font-size:.52rem;letter-spacing:.06em}.collection-home-grid .collection-caption>b{font-size:.6rem}.collection-home-grid .collection-enlarge{height:28px;width:28px;bottom:7px;right:7px}.collection-home-grid .collection-image{aspect-ratio:1.25}.collection-home{padding-block:60px}.site-footer-v2 .footer-main{grid-template-columns:1fr;gap:25px;padding-block:39px 28px}.site-footer-v2 .brand-footer{max-width:290px}.site-footer-v2 .footer-portal{grid-column:auto;width:fit-content}.site-footer-v2 .footer-bottom{gap:10px 26px;font-size:.69rem}.photo-viewer{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.photo-stage{padding:8px}.photo-viewer-bottom{flex-wrap:wrap}.photo-viewer-bottom #photo-caption{order:-1;width:100%;font-size:.75rem;text-align:left}.photo-viewer-tools{margin-left:auto}.photo-viewer-top .eyebrow{font-size:.58rem;letter-spacing:.12em}.mural-fallback{min-height:320px;padding:25px}.mural-zoom{bottom:12px;right:12px;font-size:.7rem;padding:8px 10px}.mural-frame figcaption{font-size:.71rem}.mural-feature{padding-bottom:35px;margin-bottom:35px}.book-facts{gap:13px 15px}.book-fallback{min-height:340px}.book-information>h2{font-size:2.1rem}.book-order{width:100%}}
@media(prefers-reduced-motion:reduce){.collection-card,.site-footer-v2 .footer-social-icons a{transition:none}}


/* Ajustes editoriales · 2026-10-02 */
.youtube-section{background:#fff!important;padding-bottom:42px!important}
.instagram-section{background:#f5f3ef!important;padding-top:72px!important;padding-bottom:78px!important;border-top:1px solid #ece6e1!important}
.instagram-section .instagram-heading{margin-top:0!important}
.instagram-section .section-more{margin-top:32px!important}
.youtube-channel-link{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;color:var(--red);font-size:.9rem;font-weight:700;padding-block:10px}
.youtube-channel-link:hover{color:#a91313;text-decoration:underline;text-underline-offset:6px;transform:none}
.youtube-channel-link span{display:inline-block;transition:transform .22s ease}
.youtube-channel-link:hover span{transform:translate(3px,-3px)}
.bio-section{background:transparent!important;padding-block:96px 90px!important}
.bio-section .bio{align-items:center}
.bio-section .bio-visual,.bio-section .bio-copy{background:transparent!important;border:0!important;box-shadow:none!important}
.bio-section .bio-visual img{box-shadow:none!important}
.legacy-integrated{background:linear-gradient(180deg,#f8f2ef 0%,#f6f0eb 100%)!important;border-top:1px solid #ebe2dd!important}
.legacy-integrated .legacy-book-inner{max-width:1100px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.legacy-integrated .legacy-book-cover{background:#fffaf7!important}
@media(max-width:720px){
  .youtube-section{padding-bottom:32px!important}
  .instagram-section{padding-top:56px!important;padding-bottom:62px!important}
  .youtube-channel-link{font-size:.88rem}
  .bio-section{padding-block:68px 62px!important}
}


/* Últimos ajustes editoriales: galería, legado e internas */
#fotos-usat.gallery-home-band{background:#f1f0ed!important;border-top:1px solid #e6e2de;border-bottom:1px solid #e6e2de;padding-block:105px!important}
#fotos-usat.gallery-home-band>.container{width:min(var(--max),calc(100% - 96px));margin-inline:auto}
.section-after-gallery{background:#fff!important;border-top:0!important}
.section-after-gallery::before{display:none!important}

/* Cierre de página: publicación especial con presencia institucional */
.legacy-integrated{position:relative;overflow:hidden;background:linear-gradient(128deg,#ca1b1b 0%,#b31519 58%,#961015 100%)!important;color:#fff!important;padding:92px 0!important;border:0!important;text-align:left!important}
.legacy-integrated::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 86% 18%,rgba(255,255,255,.10),transparent 28%),linear-gradient(90deg,transparent 55%,rgba(255,255,255,.035));pointer-events:none}
.legacy-integrated::after{content:"”";position:absolute;right:3vw;top:-150px;font-family:Georgia,serif;font-size:32rem;line-height:1;color:rgba(255,255,255,.06);pointer-events:none}
.legacy-integrated .container{position:relative;z-index:1}
.legacy-integrated .legacy-book-inner{max-width:1100px!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.legacy-integrated .legacy-book-cover{background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 18px 40px rgba(80,0,0,.15)!important}
.legacy-integrated .legacy-book-cover>span,.legacy-integrated .legacy-book-copy .eyebrow,.legacy-integrated .legacy-book-copy h2,.legacy-integrated .legacy-book-copy p{color:#fff!important}
.legacy-integrated .legacy-book-copy p{color:rgba(255,255,255,.88)!important}
.legacy-integrated .legacy-book-primary{background:#fff!important;color:#ca1b1b!important;border-color:#fff!important}
.legacy-integrated .legacy-book-primary:hover{background:#fff7f7!important;color:#a91313!important}
.legacy-integrated .legacy-book-secondary{background:transparent!important;color:#fff!important;border-color:rgba(255,255,255,.65)!important}
.legacy-integrated .legacy-book-secondary:hover{background:rgba(255,255,255,.10)!important;border-color:#fff!important}

/* Su historia interna: composición abierta, sin caja gigante */
body.interior .history-main-open{background:transparent!important;border:0!important;box-shadow:none!important}
body.interior .history-main-open .bio-visual,body.interior .history-main-open .bio-copy{background:transparent!important;border:0!important;box-shadow:none!important}
body.interior .history-main-open .bio-visual img{box-shadow:none!important}

/* Galería interna: compactar después de retirar textos auxiliares */
.collection-page .collection-intro{margin:0 0 24px!important;min-height:0!important}
.collection-page .collection-intro:has(.collection-badge:only-child){display:flex;justify-content:flex-start}
.collection-page .gallery-media-tabs{margin-bottom:32px!important}
.collection-page .collection-grid{margin-top:0!important}
.news-figure-fallback .news-photo-pending{background:linear-gradient(135deg,#f4eeee,#ece8e5);color:#ca1b1b;font-weight:800;letter-spacing:.05em;text-align:center}

@media(max-width:720px){
  #fotos-usat.gallery-home-band{padding-block:68px!important}
  #fotos-usat.gallery-home-band>.container{width:calc(100% - 40px)}
  .legacy-integrated{padding:68px 0!important}
  .legacy-integrated::after{font-size:20rem;right:-30px;top:-70px}
}


/* Ajustes finales solicitados: Actualidad + Nuestra historia */
.bio-section{
  background:linear-gradient(125deg,#ca1b1b 0%,#b8171b 58%,#a71318 100%)!important;
  color:#fff!important;
  padding-block:108px 104px!important;
  border:0!important;
}
.bio-section .bio{align-items:center}
.bio-section .bio-copy,.bio-section .bio-visual{background:transparent!important;border:0!important;box-shadow:none!important}
.bio-section .bio-copy .eyebrow{color:rgba(255,255,255,.78)!important}
.bio-section .bio-copy h2,.bio-section .bio-copy h2 em{color:#fff!important}
.bio-section .story-intro-copy{color:rgba(255,255,255,.88)!important}
.bio-section .story-primary-button{background:#fff!important;color:#ca1b1b!important;border:1px solid #fff!important;box-shadow:0 8px 22px rgba(70,0,0,.18)!important}
.bio-section .story-primary-button .story-button-arrow{color:#ca1b1b!important}
.bio-section .story-primary-button:hover{background:#fff7f7!important;color:#a91313!important;transform:translateY(-3px)!important;box-shadow:0 14px 30px rgba(70,0,0,.24)!important}
.bio-section .story-primary-button:hover .story-button-arrow{transform:translate(4px,-4px)!important}
.bio-section .bio-visual img{box-shadow:none!important}

#fotos-usat.gallery-home-band{background:#f1f0ed!important;color:#202023!important}
#fotos-usat.gallery-home-band h2{color:#202023!important}
#fotos-usat.gallery-home-band h2 em,#fotos-usat.gallery-home-band .eyebrow{color:#ca1b1b!important}

.home-news .actualidad-head{align-items:end;gap:32px}
.news-select-wrap{flex:0 0 auto;min-width:min(280px,100%)}
.news-select-shell{position:relative;display:flex;align-items:center;border:1px solid #ddd8d4;border-radius:999px;background:#fff;box-shadow:0 7px 18px rgba(42,31,31,.07);overflow:hidden;transition:box-shadow .22s ease,border-color .22s ease,transform .22s ease}
.news-select-shell:hover{border-color:#cfc7c2;box-shadow:0 10px 24px rgba(42,31,31,.10);transform:translateY(-1px)}
.news-select-shell:focus-within{border-color:#ca1b1b;box-shadow:0 0 0 3px rgba(202,27,27,.10),0 10px 24px rgba(42,31,31,.08)}
.news-select-shell select{width:100%;appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#202023;min-height:52px;padding:0 52px 0 20px;font:inherit;font-size:.9rem;font-weight:750;cursor:pointer;outline:0}
.news-select-chevron{position:absolute;right:18px;top:50%;transform:translateY(-52%);pointer-events:none;color:#ca1b1b;font-size:1.15rem;line-height:1}
@media(max-width:860px){
  .home-news .actualidad-head{display:block}
  .news-select-wrap{margin-top:24px;width:100%;min-width:0}
  .news-select-shell{width:100%}
}
@media(max-width:720px){
  .bio-section{padding-block:76px 70px!important}
  .bio-section .story-primary-button{width:100%!important;justify-content:space-between!important}
}


/* Ajustes finales: desplegable Actualidad + franja YouTube */
.header .actualidad-nav>summary{font:inherit;font-weight:650;color:#111;letter-spacing:-.01em;gap:7px}
.header .actualidad-nav .nav-caret{font-size:.78em;transition:transform .2s ease}
.header .actualidad-nav[open] .nav-caret{transform:rotate(180deg)}
.header .actualidad-nav .nav-submenu{min-width:190px;padding:10px;background:#fff;border:1px solid #e5e0dc;border-radius:10px;box-shadow:0 14px 32px rgba(31,24,24,.12)}
.header .actualidad-nav .nav-submenu a{display:block;padding:10px 12px;border-radius:7px;color:#252528!important;font-size:.84rem;font-weight:650;border:0!important}
.header .actualidad-nav .nav-submenu a:hover{background:#f7f2f1;color:#ca1b1b!important}
.home-news .news-tabs-hero{display:inline-flex!important;align-items:center;gap:7px;padding:6px!important;border:1px solid #e4dfdb!important;border-radius:999px!important;background:#f3f1ee!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important}
.home-news .news-tabs-hero button{position:relative;min-height:46px!important;padding:11px 20px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#343438!important;font-size:.84rem!important;font-weight:750!important;transition:background .24s ease,color .24s ease,box-shadow .24s ease,transform .24s ease!important}
.home-news .news-tabs-hero button::after{content:"";position:absolute;left:22px;right:22px;bottom:6px;height:2px;border-radius:999px;background:#ca1b1b;transform:scaleX(0);transform-origin:left;transition:transform .28s ease}
.home-news .news-tabs-hero button[aria-selected="true"]{background:#fff!important;color:#ca1b1b!important;box-shadow:0 6px 16px rgba(55,31,31,.1)!important}
.home-news .news-tabs-hero button[aria-selected="true"]::after{transform:scaleX(1)}
.home-news .news-tabs-hero button:not([aria-selected="true"]):hover{background:rgba(255,255,255,.62)!important;color:#222!important;transform:translateY(-1px)}
.youtube-section{background:#f2f2f0!important;padding-top:82px!important;padding-bottom:72px!important;border-top:1px solid #e8e6e2!important;border-bottom:1px solid #e8e6e2!important}
@media(max-width:1200px){
  .header .actualidad-nav .nav-submenu{position:static!important;box-shadow:none!important;border:0!important;border-left:2px solid #ca1b1b!important;border-radius:0!important;margin:0 0 12px 8px!important;padding:3px 12px!important;background:#f7f7f4!important}
  .header .actualidad-nav .nav-submenu a{padding:10px 8px!important}
}
@media(max-width:860px){.home-news .actualidad-head{display:block}.home-news .news-tabs-hero{margin-top:24px!important;width:100%;display:flex!important}.home-news .news-tabs-hero button{flex:1;padding-inline:12px!important}}
@media(max-width:720px){.youtube-section{padding-top:58px!important;padding-bottom:58px!important}.header .actualidad-nav>summary{font-size:.96rem!important;padding:14px 0!important;justify-content:space-between}}


/* Noticias USAT: dos notas principales + carrusel de archivo */
.news-featured-carousel{display:block!important}
.news-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:34px}
.news-featured-grid .news-card{height:100%}
.news-carousel-shell{margin-top:8px}
.news-carousel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.news-carousel-head .eyebrow{margin:0}
.news-carousel-controls{display:flex;gap:10px}
.news-carousel-button{width:44px;height:44px;border-radius:50%;border:1px solid #ddd5cf;background:#fff;color:#ca1b1b;font:700 1.05rem/1 Arial,sans-serif;cursor:pointer;box-shadow:0 5px 16px rgba(55,31,31,.08);transition:transform .2s ease,box-shadow .2s ease,opacity .2s ease}
.news-carousel-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 9px 22px rgba(55,31,31,.13)}
.news-carousel-button:disabled{opacity:.35;cursor:default;box-shadow:none}
.news-carousel-track{display:flex!important;grid-template-columns:none!important;gap:20px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:2px 2px 14px}
.news-carousel-track .news-card{flex:0 0 min(380px,calc((100vw - 110px)/3));min-width:300px;scroll-snap-align:start;height:auto}
.news-archive .news-featured-grid .news-card,.news-archive .news-carousel-track .news-card{min-height:100%}
@media(max-width:900px){.news-featured-grid{grid-template-columns:1fr}.news-carousel-track .news-card{flex-basis:min(78vw,360px)}}
@media(max-width:560px){.news-featured-grid{gap:18px;margin-bottom:28px}.news-carousel-head{align-items:center}.news-carousel-track .news-card{flex-basis:86vw;min-width:280px}.news-carousel-button{width:40px;height:40px}}

/* Carrusel único de Noticias USAT: navegación por flechas, sin barra visible */
.news-featured-grid[hidden]{display:none!important}
.news-carousel-head{justify-content:flex-end!important;min-height:44px;margin-bottom:16px!important}
.news-carousel-head>.eyebrow:empty{display:none!important}
.news-carousel-controls{margin-left:auto}
.news-carousel-button{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;font-size:1.25rem!important}
.news-carousel-track{scrollbar-width:none!important;-ms-overflow-style:none!important;padding-bottom:6px!important}
.news-carousel-track::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.news-carousel-track .news-card{flex:0 0 min(365px,calc((100vw - 120px)/3))!important}
.news-carousel-track .news-figure{aspect-ratio:16/10;overflow:hidden}
.news-carousel-track .news-photo{width:100%;height:100%;object-fit:cover!important}
@media(max-width:900px){.news-carousel-track .news-card{flex-basis:min(76vw,350px)!important}}
@media(max-width:560px){.news-carousel-head{margin-bottom:12px!important}.news-carousel-button{width:42px!important;height:42px!important}.news-carousel-track .news-card{flex-basis:86vw!important}}


/* Instagram carousel: direct embeds, no consent facade */
.instagram-section .instagram-grid,body.interior[data-page="comunidad"] .instagram-grid{
  display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(320px,calc((100% - 40px)/3))!important;
  grid-template-columns:none!important;gap:20px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;padding:4px 2px 10px!important;align-items:stretch!important;
}
.instagram-section .instagram-grid::-webkit-scrollbar,body.interior[data-page="comunidad"] .instagram-grid::-webkit-scrollbar{display:none!important}
.instagram-section .instagram-card,body.interior[data-page="comunidad"] .instagram-card{scroll-snap-align:start!important;min-width:0!important;padding:0!important;background:#fff!important;border:1px solid #e6dfdb!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 8px 26px rgba(23,19,17,.05)!important}
.instagram-section .instagram-card iframe,body.interior[data-page="comunidad"] .instagram-card iframe{width:100%!important;height:560px!important;min-height:560px!important;border:0!important;display:block!important;background:#fff!important}
.instagram-section .instagram-card>a,body.interior[data-page="comunidad"] .instagram-card>a{display:flex!important;align-items:center!important;justify-content:center!important;min-height:58px!important;margin:0!important;padding:14px 18px!important;border-top:1px solid #eee7e3!important;color:#ca1b1b!important;font-weight:700!important;background:#fff!important}
.instagram-carousel-controls{display:flex;justify-content:flex-end;gap:10px;margin:-4px 0 18px}
.instagram-carousel-arrow{width:48px;height:48px;border-radius:50%;border:1px solid #e5dcd7;background:#fff;color:#ca1b1b;font-size:1.15rem;display:grid;place-items:center;cursor:pointer;box-shadow:0 6px 18px rgba(34,24,20,.05);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.instagram-carousel-arrow:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(34,24,20,.1);border-color:#ca1b1b}
@media(max-width:980px){.instagram-section .instagram-grid{grid-auto-columns:minmax(320px,calc((100% - 20px)/2))!important}}
@media(max-width:680px){.instagram-section .instagram-grid{grid-auto-columns:minmax(86vw,1fr)!important}.instagram-section .instagram-card iframe{height:540px!important;min-height:540px!important}.instagram-carousel-controls{margin-top:4px}}


/* Ajuste interno Comunidad: embeds de Instagram amplios y legibles */
body.interior[data-page="comunidad"] .instagram-grid{
  grid-auto-columns:minmax(440px,calc((100% - 24px)/2))!important;
  gap:24px!important;
  padding:6px 2px 14px!important;
}
body.interior[data-page="comunidad"] .instagram-card{border-radius:16px!important;}
body.interior[data-page="comunidad"] .instagram-card iframe{
  height:790px!important;
  min-height:790px!important;
}
body.interior[data-page="comunidad"] .instagram-carousel-controls{margin:0 0 18px!important;}
@media(max-width:900px){
  body.interior[data-page="comunidad"] .instagram-grid{grid-auto-columns:minmax(390px,82vw)!important;}
}
@media(max-width:620px){
  body.interior[data-page="comunidad"] .instagram-grid{grid-auto-columns:88vw!important;gap:16px!important;}
  body.interior[data-page="comunidad"] .instagram-card iframe{height:720px!important;min-height:720px!important;}
}

/* Interna Noticias USAT: listado/grilla normal; el carrusel queda reservado al home */
body.interior[data-page="noticias"] .news-layout.news-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:24px!important;
}
body.interior[data-page="noticias"] .news-layout.news-grid .news-card{height:100%;min-width:0!important;}
body.interior[data-page="noticias"] .news-layout.news-grid .news-figure{aspect-ratio:16/10;overflow:hidden;}
body.interior[data-page="noticias"] .news-layout.news-grid .news-photo{width:100%;height:100%;object-fit:cover!important;}
@media(max-width:980px){body.interior[data-page="noticias"] .news-layout.news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:640px){body.interior[data-page="noticias"] .news-layout.news-grid{grid-template-columns:1fr!important;gap:18px!important;}}

/* Instagram v10: formato uniforme tipo feed 4:5 */
.instagram-section .instagram-card,
body.interior[data-page="comunidad"] .instagram-card{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
}
.instagram-section .instagram-feed-window,
body.interior[data-page="comunidad"] .instagram-feed-window{
  position:relative!important;
  width:100%!important;
  aspect-ratio:4/5!important;
  overflow:hidden!important;
  background:#fff!important;
  flex:none!important;
}
.instagram-section .instagram-feed-window iframe,
body.interior[data-page="comunidad"] .instagram-feed-window iframe{
  position:absolute!important;
  top:-56px!important;
  left:0!important;
  width:100%!important;
  height:calc(100% + 260px)!important;
  min-height:0!important;
  border:0!important;
  display:block!important;
  background:#fff!important;
}
.instagram-section .instagram-card>a,
body.interior[data-page="comunidad"] .instagram-card>a{
  min-height:58px!important;
  flex:none!important;
}
@media(max-width:680px){
  .instagram-section .instagram-grid{grid-auto-columns:minmax(84vw,1fr)!important}
  .instagram-section .instagram-feed-window iframe{top:-52px!important;height:calc(100% + 240px)!important}
}

/* Instagram v11: embeds completos, alineados y con altura uniforme */
.instagram-section .instagram-card,
body.interior[data-page="comunidad"] .instagram-card{
  display:flex!important;
  flex-direction:column!important;
  height:690px!important;
  min-height:690px!important;
  background:#fff!important;
}
.instagram-section .instagram-feed-window,
body.interior[data-page="comunidad"] .instagram-feed-window{
  position:relative!important;
  width:100%!important;
  height:632px!important;
  min-height:632px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:#fff!important;
  flex:0 0 632px!important;
}
.instagram-section .instagram-feed-window iframe,
body.interior[data-page="comunidad"] .instagram-feed-window iframe{
  position:static!important;
  transform:none!important;
  top:auto!important;
  left:auto!important;
  width:100%!important;
  height:632px!important;
  min-height:632px!important;
  border:0!important;
  display:block!important;
  background:#fff!important;
}
.instagram-section .instagram-card>a,
body.interior[data-page="comunidad"] .instagram-card>a{
  height:58px!important;
  min-height:58px!important;
  flex:0 0 58px!important;
  margin-top:auto!important;
}
@media(max-width:680px){
  .instagram-section .instagram-grid{grid-auto-columns:minmax(86vw,1fr)!important}
  .instagram-section .instagram-card{height:650px!important;min-height:650px!important}
  .instagram-section .instagram-feed-window{height:592px!important;min-height:592px!important;flex-basis:592px!important}
  .instagram-section .instagram-feed-window iframe{height:592px!important;min-height:592px!important;top:auto!important;transform:none!important}
}
\n\n/* Instagram v12: correccion puntual de la publicacion horizontal para mantener el feed uniforme */\n.instagram-card-static-fix .instagram-feed-window{display:flex!important;flex-direction:column!important;background:#fff!important;overflow:hidden!important}\n.instagram-card-static-fix .ig-static-head{height:54px;flex:0 0 54px;display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #f0f0f0;background:#fff}\n.instagram-card-static-fix .ig-static-avatar{width:36px;height:36px;border:2px solid #de2c78;border-radius:50%;display:grid;place-items:center;overflow:hidden;flex:none;background:#fff}\n.instagram-card-static-fix .ig-static-avatar img{width:29px;height:29px;object-fit:contain}\n.instagram-card-static-fix .ig-static-user{display:flex;flex-direction:column;line-height:1.1;min-width:0;font-size:12px;color:#111}\n.instagram-card-static-fix .ig-static-user strong{font-size:12px}\n.instagram-card-static-fix .ig-static-user small{font-size:11px;color:#6f6f6f;margin-top:3px}\n.instagram-card-static-fix .ig-static-profile{margin-left:auto;background:#5164f4;color:#fff;font-weight:700;font-size:12px;padding:8px 12px;border-radius:3px;white-space:nowrap}\n.instagram-card-static-fix .ig-static-media{position:relative;display:block;height:396px;flex:0 0 396px;overflow:hidden;background:#111}\n.instagram-card-static-fix .ig-static-media img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}\n.instagram-card-static-fix .ig-static-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:62px;height:62px;border-radius:50%;display:grid;place-items:center;padding-left:4px;background:rgba(255,255,255,.96);color:#111;font-size:26px;box-shadow:0 3px 14px rgba(0,0,0,.18)}\n.instagram-card-static-fix .ig-static-actions{height:52px;flex:0 0 52px;display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #eee;font-size:30px;line-height:1;color:#111;background:#fff}\n.instagram-card-static-fix .ig-static-actions span{font-family:Arial,sans-serif;font-weight:400}\n.instagram-card-static-fix .ig-static-save{margin-left:auto;font-size:27px;transform:rotate(180deg)}\n.instagram-card-static-fix .ig-static-likes{height:36px;flex:0 0 36px;display:flex;align-items:center;padding:0 12px;font-size:14px;font-weight:700;color:#111;background:#fff;border-bottom:1px solid #eee}\n.instagram-card-static-fix .ig-static-comment{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;color:#777;font-size:13px;background:#fff}\n.instagram-card-static-fix .ig-static-comment strong{font-size:28px;color:#111;font-weight:400}\n@media(max-width:680px){\n  .instagram-card-static-fix .ig-static-media{height:356px;flex-basis:356px}\n  .instagram-card-static-fix .ig-static-head{height:52px;flex-basis:52px}\n}\n