/* Tecnomoción · Web 2026 editorial and interaction improvements
   Always scoped to custom Tecnomoción pages (not StageTec/Academy). */
body.home-remix #herramientas .product .badge,
body.home-remix #herramientas .product .badge * {
  background:#e3032e!important;
  color:#fff!important;
  border-color:#e3032e!important;
}
body.home-remix #newsletterStatus {min-height:1.3em;font-weight:700;font-size:12px;}
body.home-remix #newsletterStatus.is-error {color:#ff9db3;}
body.home-remix #newsletterForm input:not([type=checkbox]):focus-visible,
body.home-remix #newsletterForm input[type=checkbox]:focus-visible {
  outline:2px solid #e3032e;outline-offset:3px;
}
body.home-remix .search-panel .search-results {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
  max-width:860px;margin:15px auto;
}
body.home-remix .tm-search-result {
  display:grid;gap:5px;padding:14px 18px;
  background:#20262d;border:1px solid #3a4855;
  color:#fff;border-radius:8px;text-decoration:none;text-align:left;
}
body.home-remix .tm-search-result:hover,
body.home-remix .tm-search-result:focus-visible {border-color:#e3032e;background:#301720;}
body.home-remix .tm-search-result b {font:800 13px Inter,Arial,sans-serif;}
body.home-remix .tm-search-result small {font:400 11px/1.4 Inter,Arial,sans-serif;color:#b2bfca;}
body.home-remix .search-panel.open {overflow-y:auto;overscroll-behavior:contain;padding:50px 16px;}
body.home-remix .search-panel label {max-width:750px;margin:auto;}

/* Marketing stays reachable by the department from the support widget only.
   The project page is not advertised in site navigation. */
body.home-remix a[href^="/marketing-talleres"],
body.repairs-page a[href^="/marketing-talleres"],
body.academy-page a[href^="/marketing-talleres"],
body.tm-network-page a[href^="/marketing-talleres"],
body.file-page a[href^="/marketing-talleres"],
body.tm-marketing-page a[href^="/marketing-talleres"] {
  display:none!important;
}

/* Footer network application is a permanent link; the actual application
   form is hosted on the collaborators page. */
footer.footer .tm-footer-join {
  color:#fff!important;font-weight:700;
  border-left:2px solid #e3032e;padding-left:9px;
}
footer.footer .tm-footer-join:hover {color:#ff5677!important;}

/* Academy modal: user explicitly loads Google Calendar, no iframes before. */
.tm-academy-calendar[hidden] {display:none!important;}
.tm-academy-calendar {
  position:fixed;inset:0;z-index:1100;
  display:grid;place-items:center;padding:16px;overflow:auto;
  background:rgba(4,8,14,.78);backdrop-filter:blur(5px);
}
.tm-calendar-card {
  width:min(1180px,calc(100vw - 30px));max-height:calc(100vh - 40px);
  display:grid;grid-template-columns:35% minmax(0,65%);
  background:#fff;border-radius:18px;overflow:auto;position:relative;
  box-shadow:0 25px 90px #0007;
}
.tm-calendar-info {
  padding:55px 35px 35px;background:#121921;color:white;
}
.tm-calendar-info small {color:#e3032e;letter-spacing:.17em;font-weight:800;}
.tm-calendar-info h2 {font:800 clamp(32px,4vw,50px)/1.1 "Barlow Condensed",Arial,sans-serif;margin:25px 0;}
.tm-calendar-info h2 em {color:#e3032e;font-style:normal;}
.tm-calendar-info p {font:400 13px/1.7 Inter,Arial,sans-serif;color:#c4d0de;}
.tm-calendar-info a {font:700 12px Inter,Arial,sans-serif;color:#fff;text-decoration:underline;}
.tm-calendar-course {display:inline-block;margin:20px 0;padding:13px 16px;background:#e3032e;border-radius:8px;text-decoration:none!important;}
.tm-calendar-info .tm-calendar-privacy {font-size:11px;margin-top:28px;}
.tm-calendar-display {padding:55px 20px 24px;display:grid;align-content:start;gap:13px;background:#f7f8fa;min-height:350px;}
.tm-calendar-load {border:0;border-radius:8px;background:#e3032e;color:#fff;padding:14px 20px;font-weight:800;cursor:pointer;justify-self:center;margin-top:100px;}
.tm-calendar-frame iframe {width:100%;height:500px;border:0;background:#fff;border-radius:8px;}
.tm-calendar-external {font-size:11px;text-align:right;color:#27384c;}
.tm-calendar-close {position:absolute;z-index:2;right:16px;top:12px;border:0;background:#101820;color:#fff;font:700 22px Inter,Arial,sans-serif;border-radius:50%;width:39px;height:39px;cursor:pointer;}

/* Keep the original page proportions inside the same side margins. */
body.academy-page .section-page-nav,
body.academy-page .academy-hero,
body.file-page .file-page-nav,
body.tm-network-page header.top {
  width:min(1430px,calc(100% - 36px));
  max-width:1430px;
  box-sizing:border-box;
  margin-left:auto!important;margin-right:auto!important;
}
body.academy-page .academy-hero {margin-top:18px!important;margin-bottom:18px!important;}
body.academy-page .section-page-nav {margin-top:12px!important;}
body.file-page .file-page-nav {margin-top:12px!important;margin-bottom:14px!important;}
body.tm-network-page header.top {
  min-height:86px;height:auto!important;margin-top:12px!important;margin-bottom:16px!important;
  padding:14px 26px!important;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
body.tm-network-page header.top .brand img {max-height:56px!important;}
body.tm-network-page .map-stage-real {
  aspect-ratio:750/455!important;
  min-height:400px;
}
body.tm-network-page #mapWrap {min-height:420px;}
body.tm-network-page #geoMap {height:100%;width:100%;}

/* Pending private sessions visible on the training page without implying
   instant booking/confirmed real-time appointment availability. */
body.academy-page .tm-private-training {
  width:min(1380px,calc(100% - 40px));max-width:1380px;
  margin:24px auto;padding:26px;box-sizing:border-box;
  display:grid;grid-template-columns:1.1fr .9fr;gap:22px;
  background:#fff;border:1px solid #dce1e7;border-radius:16px;
}
body.academy-page .tm-private-training h2 {font:800 clamp(30px,3vw,44px)/1.2 "Barlow Condensed",Arial,sans-serif;margin:10px 0;}
body.academy-page .tm-private-training p {color:#526173;font:400 14px/1.6 Inter,Arial,sans-serif;}
body.academy-page .tm-private-training .tm-private-training-action {background:#e3032e;color:white;display:inline-block;padding:14px 18px;text-decoration:none;border-radius:8px;font:800 12px Inter,Arial,sans-serif;}
body.academy-page .tm-private-training .tm-private-training-right {
  background:linear-gradient(145deg,#0c1b2a,#164d77);
  padding:30px;border-radius:12px;color:#fff;display:grid;gap:8px;
}
body.academy-page .tm-private-training .tm-private-training-right strong {font:700 20px/1.3 Inter,Arial,sans-serif;}
body.academy-page .tm-private-training .tm-private-training-right p {color:#dae5ef;font-size:12px;}
body.academy-page .tm-private-training .tm-private-training-right a{color:#fff;font-size:12px;}

/* Prevent overly narrow full-bleed headers of the File Service page. */
body.file-page .file-page-nav {padding-left:30px!important;padding-right:30px!important;border-radius:12px;}
body.file-page .file-page-hero {width:min(1430px,calc(100% - 36px));margin-left:auto!important;margin-right:auto!important;}

@media(max-width:760px){
 body.home-remix .search-panel .search-results {grid-template-columns:1fr;}
 .tm-calendar-card {grid-template-columns:1fr;}
 .tm-calendar-info,.tm-calendar-display{padding:35px 22px;}
 .tm-calendar-load{margin-top:12px;}
 .tm-calendar-frame iframe{height:420px;}
 body.academy-page .section-page-nav,
 body.academy-page .academy-hero,
 body.file-page .file-page-nav,
 body.tm-network-page header.top{width:calc(100% - 24px);}
 body.academy-page .tm-private-training{grid-template-columns:1fr;width:calc(100% - 24px);padding:18px;}
 body.file-page .file-page-nav{padding-left:14px!important;padding-right:14px!important;}
 body.file-page .file-page-hero{width:calc(100% - 24px);}
 body.tm-network-page header.top{padding:14px!important;min-height:0;}
 body.tm-network-page .map-stage-real{min-height:260px;}
 body.tm-network-page #mapWrap{min-height:285px;}
}
@media(prefers-reduced-motion:reduce){.tm-academy-calendar{scroll-behavior:auto;}}

/* Editor-owned header and footer: same Odoo view on every Tecnomoción page. */
.tm-chrome-header,.tm-chrome-footer {width:100%;max-width:none;min-width:0;}
.tm-chrome-header .tm-header-zone {
 padding:0!important;margin:0!important;max-width:none!important;
 background:#0b0e12;color:#fff;
}
.tm-chrome-header .topbar {
 background:#0b0e12;color:#aeb7c5;min-height:34px;height:auto;
 padding:8px max(18px,calc((100vw - 1420px)/2));
}
.tm-chrome-header .nav-wrap.tm-header-nav {
 display:flex;flex-wrap:wrap;align-items:center;
 min-height:90px;height:auto;gap:16px;
 width:min(1430px,calc(100% - 28px));
 padding:15px 18px;margin:0 auto;
 border:0;background:#0b0e12;color:#fff;position:relative;top:auto;
}
.tm-chrome-header .brand-logo {flex:0 0 auto;max-width:205px;min-width:125px;}
.tm-chrome-header .brand-logo img {width:100%;max-height:60px;object-fit:contain;}
.tm-chrome-header .tm-header-nav nav {
 display:flex;gap:12px;align-items:center;flex:1 1 auto;
 flex-wrap:wrap;justify-content:center;min-width:0;
}
.tm-chrome-header .tm-header-nav nav a {color:#fff;font-size:11px;white-space:nowrap;}
.tm-chrome-header .tm-header-nav button,
.tm-chrome-header .tm-header-nav a {
 cursor:pointer;
}
.tm-chrome-header .tm-header-nav .file-nav-cta,
.tm-chrome-header .tm-header-nav .nav-cta {
 display:inline-flex;align-items:center;justify-content:center;
 border:1px solid #e3032e;border-radius:7px;padding:12px 14px;
 white-space:nowrap;font-weight:700;font-size:11px;
}
.tm-chrome-header .tm-header-nav .nav-cta {background:#e3032e;color:#fff;}
.tm-chrome-header .tm-header-nav .search-trigger {
 font-size:26px;line-height:1;background:none;border:0;color:#fff;
 padding:3px 6px;
}
.tm-chrome-header .tm-header-nav .account-trigger {
 color:#fff;font-size:11px;white-space:nowrap;
 border:0;background:transparent;max-width:150px;overflow:hidden;text-overflow:ellipsis;
}
.tm-chrome-header .tm-header-nav .account-trigger:hover,
.tm-chrome-header .tm-header-nav nav a:hover {color:#ff5475;}
.tm-chrome-header .tm-header-nav .menu {display:none;background:transparent;border:0;color:#fff;}
.tm-chrome-header .tm-header-nav .home-menu-contact {display:none;}
.tm-chrome-header .search-panel {z-index:9000;}
.tm-chrome-header .search-panel .search-results {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:850px;margin:15px auto;}
.tm-chrome-header .search-panel .tm-search-result {
 display:grid;gap:4px;padding:13px 17px;border:1px solid #3c4654;background:#18212b;color:#fff;border-radius:8px;
}
.tm-chrome-header .search-panel .tm-search-result small {color:#a3b1c0;}
.tm-chrome-header .account-modal {z-index:9100;}
.tm-chrome-footer footer.footer {display:block!important;margin:0;max-width:none;width:100%;}
.tm-chrome-footer .footer-top {max-width:1440px;margin:0 auto;}
.tm-chrome-footer footer.footer .stagetec-cta,
.tm-chrome-footer footer.footer .footer-bottom {max-width:1440px;margin-left:auto;margin-right:auto;}
.tm-chrome-footer .social a[aria-disabled="true"] {cursor:default;opacity:.55;}
.tm-chrome-footer footer.footer a:not([href]) {pointer-events:none;}
.tm-chrome-footer footer.footer [data-tm-cookie-settings]{color:#bec6d0;}
@media(max-width:1100px){
 .tm-chrome-header .tm-header-nav {justify-content:space-between;}
 .tm-chrome-header .tm-header-nav .menu {display:inline-flex;flex-direction:column;gap:4px;order:2;}
 .tm-chrome-header .tm-header-nav .menu i {width:22px;height:2px;background:#fff;display:block;}
 .tm-chrome-header .tm-header-nav nav {order:8;width:100%;flex:1 0 100%;display:none;justify-content:flex-start;}
 .tm-chrome-header .tm-header-nav nav.is-open {display:flex;padding-top:12px;}
 .tm-chrome-header .tm-header-nav .search-trigger {order:3;}
 .tm-chrome-header .tm-header-nav .account-trigger {order:4;}
 .tm-chrome-header .tm-header-nav .file-nav-cta {order:5;}
 .tm-chrome-header .tm-header-nav .nav-cta {order:6;}
}
@media(max-width:700px){
 .tm-chrome-header .tm-header-nav .brand-logo {max-width:145px;}
 .tm-chrome-header .tm-header-nav {padding:11px;gap:8px;width:calc(100% - 20px);}
 .tm-chrome-header .topbar {font-size:9px;justify-content:space-between;gap:7px;}
 .tm-chrome-header .topbar span:nth-child(2) {display:none;}
 .tm-chrome-header .tm-header-nav .nav-cta {display:none;}
 .tm-chrome-header .tm-header-nav .file-nav-cta {display:none;}
 .tm-chrome-header .tm-header-nav .account-trigger {max-width:90px;font-size:10px;}
 .tm-chrome-header .search-panel .search-results {grid-template-columns:1fr;}
 .tm-chrome-footer .footer-top {grid-template-columns:1fr 1fr;}
}
