/* Mejoras comunes de navegación y galería. */
.tc-ad-link{display:inline-flex;align-items:center;min-height:44px;margin:12px 24px;padding:8px 0;font-weight:700;text-decoration:underline}
.tc-ad-invitation{margin:32px auto;max-width:1072px;width:calc(100% - 32px);padding:30px;border:1px dashed #718b5b;border-radius:14px;background:#eaf0df;color:#153d33;box-sizing:border-box}
.tc-ad-label{display:block;font:700 11px/1.5 system-ui,sans-serif;text-transform:uppercase;letter-spacing:1px;color:#52665d}
.tc-ad-invitation h2{font:750 clamp(24px,3vw,34px)/1.2 system-ui,sans-serif;margin:12px 0}
.tc-ad-invitation p{font:16px/1.6 system-ui,sans-serif;margin:12px 0 20px}
.tc-ad-cta{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 18px;border-radius:8px;background:#153d33;color:white;font-weight:700;text-decoration:none}
.tc-ad-invitation a:focus-visible,.tc-ad-link:focus-visible{outline:3px solid #557a18;outline-offset:4px}

 .tc-return-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:1120px;margin:0 auto;padding:20px 16px 28px;box-sizing:border-box}
 .tc-return-nav>button,.tc-return-nav>a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;flex:1 1 160px;max-width:320px;margin:0;padding:12px 18px;border:1px solid #597e6e;border-radius:10px;background:#153d33;color:#fff;font:600 16px/1.4 system-ui,sans-serif;text-decoration:none;text-align:center;cursor:pointer;box-sizing:border-box}
 .tc-return-nav>a{background:#e0f398;color:#153d33}
 .tc-return-nav>button:focus-visible,.tc-return-nav>a:focus-visible{outline:3px solid #557a18;outline-offset:3px}
.tc-photo-button{padding:0!important;border:0!important;background:transparent!important;cursor:zoom-in;flex:none;max-width:100%;border-radius:10px;overflow:hidden}
.tc-photo-button img{display:block;margin:0!important}
.tc-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0;flex-wrap:wrap}
.tc-gallery-controls button,.tc-gallery-close{min-height:44px;padding:10px 14px;border:1px solid #8ba59b;border-radius:8px;background:#153d33;color:#fff;font:inherit;cursor:pointer}
.tc-gallery-thumbs{display:flex;gap:8px;overflow:auto;padding:6px 2px;max-width:100%;margin-bottom:18px}
.tc-gallery-thumbs button{flex:none;width:72px;height:62px;padding:3px;border:3px solid transparent;border-radius:8px;background:#edf3ed;cursor:pointer}
.tc-gallery-thumbs button[aria-pressed=true]{border-color:#557a18}
.tc-gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.tc-gallery-dialog{box-sizing:border-box;width:min(1200px,96vw);max-width:96vw;max-height:96dvh;overflow:auto;margin:auto;padding:14px;border:0;border-radius:14px;background:#102a22;color:#fff;z-index:2500}
.tc-gallery-dialog::backdrop{background:#00170ed9}
.tc-gallery-dialog>img{display:block;width:100%;height:65dvh;min-height:150px;object-fit:contain;touch-action:pan-y pinch-zoom}
.tc-gallery-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tc-gallery-dialog .tc-gallery-thumbs{margin-bottom:0}
.tc-gallery-dialog .tc-gallery-controls{margin-bottom:0}
.tc-gallery-dialog button:disabled{opacity:.5;cursor:default}
html.tc-gallery-open{overflow:hidden}
.tc-photo-button:focus-visible,.tc-gallery-thumbs button:focus-visible{outline:3px solid #d4ef72;outline-offset:3px}
.tc-page-title{font-size:clamp(26px,4vw,40px);line-height:1.2}
.tc-form-tip{grid-column:1/-1;padding:12px;border-radius:8px;background:#edf3df;color:#173b30;font-size:14px}
.tc-form-tip:empty{display:none}
.tc-mobile-actions{display:contents}
.tc-simple-nav{display:flex;flex-wrap:wrap;align-items:center;gap:20px}.tc-simple-nav>nav{flex:1}.tc-simple-menu{display:none}
html body header #mainNav a[data-tc-duplicate]{display:none!important}
@media(min-width:1051px){
 html body header .nav{height:auto!important;min-height:0!important;width:100%!important;max-width:1320px!important;padding:12px 20px 16px!important;box-sizing:border-box!important}
 html body header #mainNav.navlinks{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:12px!important;width:100%!important}
 html body header #mainNav.navlinks>a,html body header #mainNav.navlinks>button{position:static!important;margin:0!important;min-height:40px!important;padding:8px!important;font-size:13px!important;white-space:nowrap!important}
}
@media(max-width:1050px){
 html body header .nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;height:auto!important;min-height:64px!important;width:100%!important;max-width:1120px!important;padding:12px!important;gap:12px!important}
 html body header .nav>.brand{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:min(100%,260px)!important;height:auto!important;aspect-ratio:320/49!important;max-width:100%!important;margin:0!important;overflow:hidden!important}
 html body header .nav>.brand .header-logo{display:block!important;width:100%!important;max-width:none!important;height:auto!important;transform:translateY(-28%)!important}
 html body header #menuToggle{display:block!important;position:static!important;width:auto!important;min-width:70px!important;min-height:44px!important;padding:8px 12px!important;margin:0!important;background:#e4f2bf!important;color:#163d30!important;border:1px solid #adc581!important;border-radius:9px!important}
 html.tc-enhanced body header #mainNav.navlinks{display:none!important;position:static!important;inset:auto!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;transform:none!important;box-shadow:none!important;border:0!important;padding:6px 0!important;margin:0!important;background:transparent!important;gap:8px!important}
 html body header #mainNav.navlinks.is-open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body header #mainNav.navlinks>a,html body header #mainNav.navlinks>button{display:flex!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;height:auto!important;min-height:44px!important;margin:0!important;padding:10px 8px!important;font-size:14px!important;line-height:1.3!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important}
 html body header #mainNav.navlinks>a[data-tc-duplicate]{display:none!important}
 html body header .country-corners{display:none!important}
 html body header .language-bar{display:flex!important;padding:7px 12px!important;gap:8px!important;min-height:0!important}
 html body header .language-bar label{font-size:12px!important;margin:0!important}
 html body header .language-bar select{max-width:48%!important;width:auto!important;min-height:34px!important;padding:4px 8px!important}
 html body header .language-note{display:none!important}
}
@media(max-width:650px){
 html body header:has(.tc-simple-nav){padding:10px 12px!important;max-width:100%!important;box-sizing:border-box!important}
 .tc-simple-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
 .tc-simple-nav>a{font-weight:750;color:#fff;text-decoration:none;min-width:0}
 .tc-simple-menu{display:block;background:#e4f2bf;color:#163d30;min-height:44px;padding:8px 12px;border:1px solid #adc581;border-radius:9px;font:inherit;cursor:pointer}
 html body .tc-simple-nav>nav{display:none;grid-column:1/-1;gap:10px;flex-wrap:wrap}
 html body .tc-simple-nav.is-open>nav{display:flex}
 .tc-simple-nav>nav>a,.tc-simple-nav>nav>button{min-height:44px;padding:8px;box-sizing:border-box}
 html body:has(.tc-mobile-actions:not(:empty)){padding-bottom:calc(78px + env(safe-area-inset-bottom))!important}
 .tc-mobile-actions:not(:empty){display:flex;position:fixed;bottom:0;left:0;right:0;z-index:950;gap:12px;align-items:center;justify-content:space-between;background:#f2f6f1f5;border-top:1px solid #b8cbbf;padding:8px 12px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -2px 10px #102a2a15}
 html body .tc-mobile-actions>button{position:static!important;inset:auto!important;margin:0!important;min-height:44px!important;padding:9px 15px!important;border-radius:24px!important;box-shadow:none!important;transform:none!important;font-size:14px!important}
 html body .tc-mobile-actions>button svg{width:20px!important;height:20px!important}
 html body #chatPanel{bottom:84px!important;max-height:calc(100dvh - 110px)!important}
 .tc-gallery-dialog>img{height:54dvh}
}
/* Acceso visible a radio junto al logo, en todos los tamaños. */
html body header .tc-header-radio{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:3px!important;position:static!important;background:#d8f36a!important;color:#153d33!important;border:1px solid #a3bf49!important;border-radius:12px!important;padding:11px 16px!important;min-height:60px!important;max-width:290px!important;margin:0!important;text-decoration:none!important;white-space:normal!important;box-sizing:border-box!important;line-height:1.25!important;flex-shrink:0}
html body header .tc-header-radio strong{font:800 18px/1.25 system-ui,sans-serif!important}
html body header .tc-header-radio span{font:500 12px/1.35 system-ui,sans-serif!important}
html body header .tc-header-radio:focus-visible{outline:3px solid #537400!important;outline-offset:4px!important}
html body header.tc-has-radio .nav{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
html body header.tc-has-radio .nav>.brand{grid-column:1!important;grid-row:1!important}
html body header.tc-has-radio .nav>.tc-header-radio{grid-column:2!important;grid-row:1!important}
html body header.tc-has-radio #mainNav{grid-column:1/-1!important;grid-row:3!important}
html body header.tc-has-radio #menuToggle{grid-column:1/-1!important;grid-row:2!important;justify-self:end!important}
@media(max-width:650px){
 html body header .tc-header-radio{max-width:155px!important;padding:9px 10px!important;min-height:62px!important}
 html body header .tc-header-radio strong{font-size:15px!important}
 html body header .tc-header-radio span{font-size:11px!important}
 html body header.tc-has-radio .tc-simple-nav{grid-template-columns:minmax(0,1fr) auto!important}
 html body header.tc-has-radio .tc-simple-menu{grid-column:1/-1;justify-self:end}
}
/* Radio y TRINC TV junto al logo. */
html body header .tc-media-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-width:360px!important;min-width:0!important;align-items:stretch!important}
html body header.tc-has-radio .nav>.tc-media-links{grid-column:2!important;grid-row:1!important}
html body header .tc-media-links .tc-header-radio{width:100%!important;max-width:none!important;min-width:0!important;padding:9px 10px!important;min-height:56px!important;gap:3px!important}
html body header .tc-media-links .tc-header-radio strong{font-size:15px!important;line-height:1.25!important}
html body header .tc-media-links .tc-header-radio span{font-size:10px!important;line-height:1.3!important}
html body header .tc-media-links .tc-header-tv{background:#153d33!important;color:#d8f36a!important;border-color:#153d33!important}
@media(max-width:650px){html body header .tc-media-links{max-width:165px!important;gap:5px!important}html body header .tc-media-links .tc-header-radio{padding:7px 6px!important;min-height:48px!important}html body header .tc-media-links .tc-header-radio strong{font-size:11px!important}html body header .tc-media-links .tc-header-radio span{display:none!important}}

/* Accesos pequeños, simétricos; la marca conserva el centro de la pantalla. */
html body header.tc-has-radio .nav{display:grid!important;grid-template-columns:90px minmax(0,1fr) 90px!important;gap:8px!important;max-width:none!important;padding:10px 16px!important;align-items:center!important}
html body header.tc-has-radio .nav>.brand{grid-column:2!important;grid-row:1!important;justify-self:center!important;width:min(100%,260px)!important;margin:0!important;text-align:center!important}
html body header.tc-has-radio #tcRadioLink,html body header.tc-has-radio #tcTVLink{width:90px!important;max-width:90px!important;min-height:40px!important;height:40px!important;padding:5px 8px!important;font:750 13px/1 system-ui,sans-serif!important;white-space:nowrap!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:8px!important;box-shadow:none!important;position:static!important;margin:0!important}
html body header.tc-has-radio #tcRadioLink{grid-column:1!important;grid-row:1!important;justify-self:start!important}
html body header.tc-has-radio #tcTVLink{grid-column:3!important;grid-row:1!important;justify-self:end!important;background:#153d33!important;color:#d8f36a!important}
html body header.tc-has-radio #mainNav{grid-column:1/-1!important;grid-row:3!important}
html body header.tc-has-radio #menuToggle{grid-column:1/-1!important;grid-row:2!important}
#tcRadioLink.is-playing::before{content:'';width:6px;height:6px;border-radius:50%;background:#278b37;flex-shrink:0}
.tc-media-panel{position:fixed;top:90px;left:12px;width:min(520px,calc(100vw - 24px));height:min(650px,calc(100dvh - 110px));z-index:2000;background:#f5f6f2;border:1px solid #9aad9f;border-radius:12px;box-shadow:0 10px 40px #0004;overflow:hidden;display:flex;flex-direction:column}
.tc-media-panel[hidden]{display:none!important}.tc-panel-tv{left:auto;right:12px}.tc-media-panel-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 10px;background:#153d33;color:white;font:700 12px system-ui,sans-serif}.tc-media-panel-bar button{padding:6px 12px!important;min-height:32px!important;font-size:12px!important;background:#d8f36a!important;color:#153d33!important}.tc-media-panel iframe{width:100%;flex:1;min-height:0;border:0}
#tcSiteFrame{display:none;width:100%;border:0;background:#f5f6f2;height:calc(100dvh - 170px);min-height:400px}
body.tc-media-browsing>#tcSiteFrame{display:block}body.tc-media-browsing>main,body.tc-media-browsing>section,body.tc-media-browsing>footer,body.tc-media-browsing>.tc-return-nav,body.tc-media-browsing>#tcReturnNav{display:none!important}body.tc-media-browsing>.tc-media-panel:not([hidden]){display:flex!important}
@media(max-width:650px){html body header.tc-has-radio .nav{grid-template-columns:64px minmax(0,1fr) 64px!important;gap:6px!important;padding:8px 10px!important}html body header.tc-has-radio #tcRadioLink,html body header.tc-has-radio #tcTVLink{width:64px!important;max-width:64px!important;min-height:36px!important;height:36px!important;padding:4px!important;font-size:11px!important}html body header.tc-has-radio .nav>.brand{max-width:180px!important}.tc-media-panel{top:72px;height:calc(100dvh - 90px)}#tcSiteFrame{height:calc(100dvh - 160px)}}
body.tc-media-browsing{display:flex!important;flex-direction:column;height:100dvh!important;overflow:hidden!important;box-sizing:border-box!important}body.tc-media-browsing>:not(header):not(#tcSiteFrame):not(.tc-media-panel):not(#countryRibbon){display:none!important}body.tc-media-browsing>header{flex:0 0 auto;position:relative!important;top:auto!important;width:100%;z-index:1001}body.tc-media-browsing>#tcSiteFrame{flex:1 1 auto;height:auto!important;min-height:0!important}
html body header .country-corners{display:none!important}.tc-translation-flag{display:inline-block!important;width:25px!important;height:17px!important;min-width:25px!important;position:relative;overflow:hidden;box-shadow:0 0 0 1px #102a2a40;border-radius:2px;vertical-align:middle;flex-shrink:0}.tc-flag-es{background:linear-gradient(#aa151b 0 25%,#f1bf00 25% 75%,#aa151b 75%)}.tc-flag-de{background:linear-gradient(#111 0 33.333%,#d00 33.333% 66.666%,#ffce00 66.666%)}.tc-flag-tr{background:#e30a17;color:white;text-align:center;font:16px/17px serif}.tc-flag-gb{background:linear-gradient(0deg,transparent 40%,#c8102e 40% 60%,transparent 60%),linear-gradient(90deg,transparent 43%,#c8102e 43% 57%,transparent 57%),linear-gradient(0deg,transparent 30%,white 30% 70%,transparent 70%),linear-gradient(90deg,transparent 35%,white 35% 65%,transparent 65%),linear-gradient(33deg,transparent 44%,white 44% 56%,transparent 56%),linear-gradient(-33deg,#012169 44%,white 44% 56%,#012169 56%)}
html body header.tc-has-radio .nav>.brand{position:static!important;inset:auto!important;transform:none!important;height:auto!important;aspect-ratio:320/49!important;overflow:hidden!important;display:block!important;max-width:100%!important;border-radius:8px!important}html body header.tc-has-radio .nav>.brand .header-logo{display:block!important;width:100%!important;height:auto!important;max-width:none!important;transform:translateY(-28%)!important;object-fit:contain!important}

#tcMobileRadioAudio{display:block;width:calc(100% - 16px);min-height:54px;margin:6px 8px;flex:0 0 auto}.tc-radio-mobile-help{font:12px/1.4 system-ui;color:#153d33;margin:0;padding:0 10px 8px}

body.tc-media-browsing>#tcMessageToast,body.tc-media-browsing>#chatPanel[open]{display:block!important}body.tc-media-browsing>#chatPanel:not([open]),body.tc-media-browsing>#chatPanel[hidden]{display:none!important}

/* Respeta la barra de desplazamiento en pantallas estrechas. */
.tc-media-panel{box-sizing:border-box;width:min(520px,calc(100% - 24px))}

/* Corrección de accesos rápidos: chat y compartir sin solapamientos. */
html body .tc-mobile-actions > #openChat.chat-corner { bottom: 88px !important; }
@media (max-width:650px) {
 html body .tc-mobile-actions > #openChat.chat-corner,
 html body .tc-mobile-actions > #sharePage.share-page { position: static !important; inset: auto !important; margin: 0 !important; transform: none !important; flex: 0 1 auto; min-width: 0; max-width: calc(50% - 6px); box-sizing: border-box; }
 html body .tc-mobile-actions:not(:empty) { align-items: center; box-sizing: border-box; }
}
