/* Inter local (400/500/600/700) definido desde wp_enqueue_scripts. */
body.tst-country-shell{font-family:"Inter",Arial,sans-serif;margin:0;min-height:100vh;display:flex;flex-direction:column;background:#fff}
body.tst-country-shell>.tst-shell-footer{margin-top:auto}
body.tst-country-shell button,body.tst-country-shell input,body.tst-country-shell textarea,body.tst-country-shell select{font-family:"Inter",Arial,sans-serif}
.tst-shell-header{background:#fff;position:relative;z-index:20;box-shadow:0 2px 20px rgba(25,32,50,.025)}
.tst-shell-header-inner{max-width:1200px;width:100%;box-sizing:border-box;margin:0 auto;height:93px;min-height:93px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 20px;position:relative}
.tst-shell-brand{display:inline-flex;align-items:center;position:relative;z-index:2;flex-shrink:0}
.tst-shell-brand img{display:block;width:auto;max-width:100%;height:50px;object-fit:contain}
.tst-shell-brand-col img{display:block;width:171px;max-width:100%;height:auto;object-fit:contain}
.tst-shell-nav{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:0;background:#fff;border-radius:100px;padding:5px 12px;box-shadow:0 5px 35px rgba(29,37,54,.09);max-width:calc(100% - 270px);box-sizing:border-box}
.tst-shell-nav a{display:inline-flex;justify-content:center;align-items:center;min-height:37px;box-sizing:border-box;padding:7px 20px;border-radius:100px;color:#242424;text-decoration:none;font-family:"Inter",Arial,sans-serif;font-weight:700;font-size:15px;line-height:1.3;white-space:nowrap;transition:background-color .2s ease,color .2s ease}
.tst-shell-nav a:hover,.tst-shell-nav a:focus-visible{background:#f0edfc;color:#5332c8;text-decoration:none}
.tst-shell-nav a.is-active,.tst-shell-nav a.is-active:hover,.tst-shell-nav a.is-active:focus-visible{background:#5126c9;color:#fff;text-decoration:none}
.tst-shell-nav a:focus-visible{outline:2px solid #7964e7;outline-offset:2px}
.tst-shell-backdrop,.tst-shell-mobile-top{display:none}
.tst-shell-toggle{display:none;align-items:center;justify-content:center;border:0;border-radius:9px;background:#5126c9;color:#fff;padding:8px 12px;font-size:22px;line-height:1;cursor:pointer;transition:background-color .2s ease}
.tst-shell-toggle:hover,.tst-shell-toggle:focus-visible{background:#4220a8;color:#fff}
.tst-shell-toggle:focus-visible{outline:2px solid #8b75ec;outline-offset:3px}
.tst-shell-footer{width:100%;padding-top:75px;background:#fff;color:#202020}
.tst-shell-footer-inner{max-width:1120px;margin:auto;display:grid;grid-template-columns:1.3fr 1fr 1.1fr 1fr;gap:40px;padding:0 20px 60px}
.tst-shell-brand-col p{color:#858585;font-size:14px;line-height:1.65;max-width:245px;margin-top:14px}
.tst-shell-foot-col{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.tst-shell-foot-col h2{font-size:19px;font-weight:500;margin:0 0 14px;line-height:1.4}
.tst-shell-foot-col a,.tst-shell-bottom a{color:#202020;text-decoration:none;font-size:14px;line-height:1.5}
.tst-shell-foot-col a:hover,.tst-shell-bottom a:hover{color:#4940ee}
.tst-shell-bottom{max-width:1160px;padding:18px 20px;margin:0 auto;display:flex;gap:24px;align-items:center;justify-content:space-between;color:#929292;font-size:12px}
.tst-shell-bottom nav{display:flex;gap:24px;flex-wrap:wrap}
.tst-shell-bottom a{font-size:12px}
/* Conmutar a menú móvil antes de que colisionen logo y navegación. */
@media(max-width:1050px){
 .tst-shell-header-inner{height:76px;min-height:76px}
 .tst-shell-brand img{height:44px;width:auto}
 .tst-shell-toggle{display:inline-flex;margin-left:auto;background:transparent;color:#111;border-radius:5px;padding:8px}
 .tst-shell-toggle:hover,.tst-shell-toggle:focus-visible{background:#f4f4f4;color:#111}
 .tst-shell-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.8);border:0;padding:0;opacity:0;visibility:hidden;pointer-events:none;z-index:19998;transition:opacity .23s ease,visibility .23s ease}
 .tst-shell-backdrop.is-open{opacity:1;visibility:visible;pointer-events:auto}
 .tst-shell-nav{display:flex;position:fixed;top:0;bottom:0;right:0;left:auto;transform:translateX(105%);width:min(335px,88vw);max-width:none;height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;border-radius:22px 0 0 0;background:#fff;box-shadow:none;padding:0 18px 32px;z-index:19999;visibility:hidden;transition:transform .25s ease,visibility .25s ease}
 .tst-shell-nav.is-open{transform:translateX(0);visibility:visible}
 .tst-shell-mobile-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:25px 0 30px;min-height:84px;box-sizing:border-box}
 .tst-shell-mobile-top img{display:block;max-width:160px;width:auto;height:38px;object-fit:contain}
 .tst-shell-close{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:#999;cursor:pointer;padding:7px}
 .tst-shell-close:hover{color:#222}
 .tst-shell-nav a.tst-shell-menu-link{display:flex;width:100%;max-width:none;min-height:55px;align-self:stretch;flex:0 0 auto;text-align:center;justify-content:center;padding:14px 12px;border-bottom:1px solid #f0f0f0;border-radius:0;font-size:14px;font-weight:500;color:#242424;line-height:1.4;white-space:normal}
 .tst-shell-nav a.tst-shell-menu-link:hover,.tst-shell-nav a.tst-shell-menu-link:focus-visible{background:#f4f4f4;color:#222}
 .tst-shell-nav a.tst-shell-menu-link.is-active,.tst-shell-nav a.tst-shell-menu-link.is-active:hover{background:#f5f5f5;color:#242424}
 body.tst-shell-menu-open{overflow:hidden}
}
@media(max-width:780px){.tst-shell-header-inner{height:65px;min-height:65px}.tst-shell-footer{padding-top:50px}.tst-shell-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;padding-bottom:40px}.tst-shell-bottom{align-items:flex-start;flex-direction:column;gap:12px}}
@media(max-width:460px){.tst-shell-footer-inner{grid-template-columns:1fr 1fr;gap:26px 14px}.tst-shell-brand-col{grid-column:1/-1}.tst-shell-foot-col h2{font-size:16px}.tst-shell-foot-col a{font-size:13px}.tst-shell-bottom nav{gap:10px 16px}}

/* v7.3: aislar los controles del menú lateral de estilos globales del tema. */
@media (max-width:1050px) {
 body.tst-country-shell .tst-shell-backdrop,
 body.tst-country-shell .tst-shell-backdrop:hover,
 body.tst-country-shell .tst-shell-backdrop:focus,
 body.tst-country-shell .tst-shell-backdrop:active,
 body.tst-country-shell .tst-shell-backdrop.is-open {
   -webkit-appearance:none;appearance:none;
   display:block;position:fixed;inset:0;width:100vw;height:100vh;
   margin:0;padding:0;border:0;border-radius:0;
   background:rgba(0,0,0,.78) !important;
   box-shadow:none;outline:none;
 }
 body.tst-country-shell .tst-shell-backdrop:not(.is-open) {
   opacity:0;visibility:hidden;pointer-events:none;
 }
 body.tst-country-shell .tst-shell-backdrop.is-open {
   opacity:1;visibility:visible;pointer-events:auto;
 }
 body.tst-country-shell .tst-shell-toggle,
 body.tst-country-shell .tst-shell-toggle:hover,
 body.tst-country-shell .tst-shell-toggle:focus,
 body.tst-country-shell .tst-shell-toggle:active,
 body.tst-country-shell .tst-shell-toggle[aria-expanded="true"] {
   -webkit-appearance:none;appearance:none;
   background:transparent !important;color:#111 !important;
   border:0;box-shadow:none;border-radius:5px;
 }
 body.tst-country-shell .tst-shell-toggle svg {stroke:currentColor;display:block}
 body.tst-country-shell .tst-shell-close,
 body.tst-country-shell .tst-shell-close:hover,
 body.tst-country-shell .tst-shell-close:focus,
 body.tst-country-shell .tst-shell-close:active {
   -webkit-appearance:none;appearance:none;
   background:transparent !important;color:#858585 !important;
   border:0;box-shadow:none;border-radius:4px;
 }
 body.tst-country-shell .tst-shell-close svg {stroke:currentColor;display:block}
 body.tst-country-shell .tst-shell-toggle:focus-visible,
 body.tst-country-shell .tst-shell-close:focus-visible {outline:2px solid #5126c9;outline-offset:3px}
}


/* v7.5: bandera integrada inmediatamente a la derecha del logo en header y footer. */
.tst-shell-header-inner .tst-shell-brand,
.tst-shell-mobile-brand,
.tst-shell-footer-brand{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;width:max-content;max-width:100%;text-decoration:none;flex-shrink:0}
.tst-shell-header-inner .tst-shell-brand .tst-shell-logo{display:block;height:50px;width:auto;max-width:none;object-fit:contain}
.tst-shell-header-inner .tst-shell-brand .tst-shell-country-flag,
.tst-shell-mobile-brand .tst-shell-country-flag,
.tst-shell-footer-brand .tst-shell-country-flag{display:block;flex-shrink:0;width:30px;height:21px;object-fit:cover;border:0;border-radius:0;box-shadow:none;margin:0}
.tst-shell-brand-col .tst-shell-footer-brand .tst-shell-logo{width:171px;height:auto;max-width:100%;object-fit:contain}
.tst-shell-footer-brand .tst-shell-country-flag{width:27px;height:19px}
@media(max-width:1050px){
 .tst-shell-header-inner .tst-shell-brand .tst-shell-logo{height:44px}
 .tst-shell-header-inner .tst-shell-brand .tst-shell-country-flag{width:26px;height:18px}
 .tst-shell-mobile-brand .tst-shell-logo{height:38px;width:auto;max-width:160px}
 .tst-shell-mobile-brand .tst-shell-country-flag{width:24px;height:17px}
}
@media(max-width:460px){.tst-shell-header-inner .tst-shell-brand,.tst-shell-mobile-brand{gap:7px}}

/* v7.7: iconos sociales por país y banner opcional en el panel móvil. */
.tst-shell-social-desktop{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-shrink:0;z-index:2;position:relative}
.tst-shell-social-desktop .tst-shell-social-link{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;box-sizing:border-box;background:#262626;color:#fff;text-decoration:none;border-radius:7px;transition:background .2s ease,transform .2s ease}
.tst-shell-social-desktop .tst-shell-social-link:hover,.tst-shell-social-desktop .tst-shell-social-link:focus-visible{background:#5126c9;color:#fff;transform:translateY(-1px)}
.tst-shell-social-link svg{width:20px;height:20px;display:block;flex-shrink:0}
.tst-shell-social-label{display:none}
.tst-shell-social-mobile,.tst-shell-mobile-banner{display:none}
@media(max-width:1050px){
 .tst-shell-social-desktop{display:none}
 .tst-shell-nav .tst-shell-mobile-banner{display:block;margin: auto auto 20px;flex-shrink:0;width:min(165px,100%);text-align:center;padding-top:34px}
 .tst-shell-mobile-banner a{display:block;border-radius:5px;overflow:hidden;line-height:0}
 .tst-shell-mobile-banner img{display:block;width:100%;height:auto;max-height:240px;object-fit:contain}
 .tst-shell-nav .tst-shell-social-mobile{display:flex;flex-direction:column;align-items:stretch;gap:10px;flex-shrink:0;margin-top:auto;padding:22px 0 6px}
 .tst-shell-nav .tst-shell-mobile-banner + .tst-shell-social-mobile{margin-top:0;padding-top:0}
 .tst-shell-social-mobile .tst-shell-social-link{display:flex;width:100%;min-height:39px;box-sizing:border-box;align-items:center;justify-content:center;gap:8px;background:#292929;color:#fff;border-radius:9px;padding:8px 14px;text-decoration:none;font-size:13px;font-weight:700;line-height:1.2}
 .tst-shell-social-mobile .tst-shell-social-link:hover,.tst-shell-social-mobile .tst-shell-social-link:focus-visible{background:#5126c9;color:#fff}
 .tst-shell-social-mobile .tst-shell-social-link svg{width:16px;height:16px}
 .tst-shell-social-mobile .tst-shell-social-label{display:inline}
}

/* v7.8 — promocion centrada en espacio disponible del drawer; redes en footer. */
.tst-shell-brand-col .tst-shell-social-desktop{
 display:flex;justify-content:flex-start;align-items:center;gap:9px;
 width:max-content;max-width:100%;margin:16px 0 0;position:static;
}
.tst-shell-brand-col .tst-shell-social-desktop .tst-shell-social-link{
 width:37px;height:37px;flex-shrink:0;
}
.tst-shell-brand-col .tst-shell-social-desktop .tst-shell-social-link svg{width:19px;height:19px}
@media(max-width:1050px){
 /* El banner ocupa el espacio libre de manera equilibrada, no queda pegado abajo. */
 .tst-shell-nav .tst-shell-mobile-banner{
   display:flex;flex:1 0 auto;flex-direction:column;justify-content:center;
   align-items:center;margin:12px auto 12px;padding:12px 0;
   width:100%;min-height:100px;max-height:none;
 }
 .tst-shell-nav .tst-shell-mobile-banner a{width:min(165px,100%);max-width:165px}
 .tst-shell-nav .tst-shell-social-mobile,
 .tst-shell-nav .tst-shell-mobile-banner + .tst-shell-social-mobile{
   margin-top:auto;padding-top:12px;
 }
 /* Aun en móvil, los iconos del footer conservan el mismo ajuste del país. */
 .tst-shell-brand-col .tst-shell-social-desktop{display:flex}
}
