/* Navbar y footer canónicos de Torno Cisneros.
   Se aplica a páginas que reutilizan exactamente el shell del index. */
.tc-index-shell-root { overflow-x: clip; }

.tc-index-shell {
  --forge: var(--color-forge, #080c14);
  --steel: var(--color-steel, #0e1525);
  --chrome: var(--color-chrome, #6b7e99);
  --vapor: var(--color-vapor, #b8c8dc);
  --white: var(--color-white, #e8f0f8);
  --blue: var(--color-blue, #1e6fff);
  --blue-dim: var(--color-blue-dim, #155acc);
  --brushed: var(--color-brushed, #2a3a55);
  --font-cond: var(--font-heading, 'Barlow Condensed', sans-serif);
  overflow-x: clip;
}

body.tc-index-shell #main-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  transition: background .4s, border-color .4s, padding .4s;
}

body.tc-index-shell #main-nav.scrolled {
  padding: .9rem 0;
  border-color: rgba(30,111,255,.18);
  background: rgba(8,12,20,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body.tc-index-shell .nav-inner {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.tc-index-shell #main-nav .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

body.tc-index-shell #main-nav .logo-img {
  display: block;
  width: auto;
  height: 100px;
}

body.tc-index-shell .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  list-style: none;
}

body.tc-index-shell .nav-links > li { position: relative; }
body.tc-index-shell .nav-links > li > a {
  color: var(--chrome);
  font: 600 .78rem/1.2 var(--font-cond);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s;
}
body.tc-index-shell .nav-links > li > a:hover,
body.tc-index-shell .nav-links > li > a:focus-visible { color: var(--blue); }

body.tc-index-shell .services-dropdown {
  position: absolute;
  top: calc(100% + .9rem);
  left: 50%;
  width: 270px;
  margin: 0;
  padding: .65rem;
  list-style: none;
  border: 1px solid rgba(30,111,255,.24);
  border-radius: 4px;
  background: rgba(8,12,20,.96);
  box-shadow: 0 18px 45px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.03) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
body.tc-index-shell .services-dropdown::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
body.tc-index-shell .nav-services:hover .services-dropdown,
body.tc-index-shell .nav-services:focus-within .services-dropdown,
body.tc-index-shell .nav-services.tc-services-open .services-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
body.tc-index-shell .nav-links .services-dropdown a {
  display: block;
  padding: .72rem .85rem;
  border-radius: 3px;
  color: var(--vapor);
  font: 600 .72rem/1.15 var(--font-cond);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: normal;
}
body.tc-index-shell .nav-links .services-dropdown a:hover,
body.tc-index-shell .nav-links .services-dropdown a:focus-visible { color: var(--white); background: rgba(30,111,255,.14); }

body.tc-index-shell #main-nav .nav-cta {
  min-height: 48px;
  padding: .88rem 1.15rem;
  border: 1px solid var(--blue);
  color: #080c14;
  background: var(--blue);
  font: 700 .76rem/1 var(--font-cond);
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.tc-index-shell #main-nav .nav-cta:hover { color: var(--white); background: var(--blue-dim); }

body.tc-index-shell .hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
body.tc-index-shell .hamburger span { display: block; height: 1px; background: var(--vapor); transition: transform .35s var(--ease-out), opacity .25s, width .25s; }
body.tc-index-shell .hamburger span:nth-child(1),
body.tc-index-shell .hamburger span:nth-child(3) { width: 24px; }
body.tc-index-shell .hamburger span:nth-child(2) { width: 16px; margin-left: 8px; }
body.tc-index-shell .hamburger.open span:nth-child(1) { width: 24px; transform: rotate(45deg) translate(4px,4px); }
body.tc-index-shell .hamburger.open span:nth-child(2) { opacity: 0; }
body.tc-index-shell .hamburger.open span:nth-child(3) { width: 24px; transform: rotate(-45deg) translate(4px,-4px); }

body.tc-index-shell #mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: rgba(8,12,20,.97);
  clip-path: inset(0 0 0 100%);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: clip-path .42s var(--ease-out), opacity .35s;
}
body.tc-index-shell #mobile-menu.open { clip-path: inset(0); opacity: 1; pointer-events: auto; transform: none; }
body.tc-index-shell .mobile-links a {
  display: block;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(30,111,255,.12);
  color: var(--white);
  font: 800 clamp(2.2rem, 9vw, 3.5rem)/1.1 var(--font-cond);
  text-transform: uppercase;
  transition: color .25s, padding-left .25s;
}
body.tc-index-shell .mobile-links a:hover { color: var(--blue); padding-left: .75rem; }
body.tc-index-shell .mobile-service-group { padding-bottom: .65rem; margin-bottom: .35rem; border-bottom: 1px solid rgba(30,111,255,.12); }
body.tc-index-shell .mobile-links .mobile-service-group > a:first-child { border-bottom: 0; }
body.tc-index-shell .mobile-links .mobile-service-link {
  padding: .28rem 0 .28rem 1rem;
  border-bottom: 0;
  color: var(--chrome);
  font-size: clamp(.9rem, 4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .15em;
}
body.tc-index-shell .mobile-links .mobile-service-link:hover { color: var(--blue); padding-left: 1.35rem; }
body.tc-index-shell .mobile-contacts { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
body.tc-index-shell .mobile-contacts a { color: var(--chrome); font: .72rem/1.2 var(--font-mono); }
body.tc-index-shell .mobile-contacts a:hover { color: var(--blue); }

body.tc-index-shell.tc-service-tail-ready footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(30,111,255,.1);
  color: var(--chrome);
  background: var(--forge);
}
body.tc-index-shell.tc-service-tail-ready .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
body.tc-index-shell.tc-service-tail-ready .footer-brand .logo { display: flex; align-items: flex-start; gap: 0; margin-bottom: 1rem; }
body.tc-index-shell.tc-service-tail-ready .footer-brand p { max-width: none; margin-bottom: 1.25rem; color: var(--chrome); font-size: .85rem; font-weight: 300; line-height: 1.7; }
body.tc-index-shell.tc-service-tail-ready .logo-top { color: var(--white); font: 900 1.55rem/1 var(--font-cond); letter-spacing: .14em; text-transform: uppercase; }
body.tc-index-shell.tc-service-tail-ready .logo-sub { margin-top: 1px; color: var(--blue); font: .6rem/1 var(--font-mono); letter-spacing: .4em; text-transform: uppercase; }
body.tc-index-shell.tc-service-tail-ready .footer-col h4 { margin-bottom: 1.25rem; color: var(--white); font: 700 .82rem/1 var(--font-cond); letter-spacing: .2em; text-transform: uppercase; }
body.tc-index-shell.tc-service-tail-ready .footer-col ul,
body.tc-index-shell.tc-service-tail-ready .footer-col address { display: flex; flex-direction: column; gap: .65rem; margin: 0; font-style: normal; }
body.tc-index-shell.tc-service-tail-ready .footer-col a { color: var(--chrome); font-size: .85rem; font-weight: 300; line-height: 1.5; }
body.tc-index-shell.tc-service-tail-ready .footer-col a:hover { color: var(--blue); }
body.tc-index-shell.tc-service-tail-ready .addr-lbl { margin-bottom: .1rem; color: rgba(107,126,153,.6); font: .58rem/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
body.tc-index-shell.tc-service-tail-ready .footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid rgba(184,200,220,.06); }
body.tc-index-shell.tc-service-tail-ready .footer-bottom p { margin: 0; color: var(--chrome); font-size: .78rem; font-weight: 300; }
body.tc-index-shell.tc-service-tail-ready .footer-bottom .region { display: flex; align-items: center; gap: .5rem; color: var(--chrome); font: .62rem/1 var(--font-mono); }
body.tc-index-shell.tc-service-tail-ready .footer-bottom .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }

@media (max-width: 1024px) {
  body.tc-index-shell .nav-links,
  body.tc-index-shell #main-nav .nav-cta { display: none; }
  body.tc-index-shell .hamburger { display: flex; }
  body.tc-index-shell.tc-service-tail-ready .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body.tc-index-shell #main-nav .logo-img { height: 42px; }
  body.tc-index-shell.tc-service-tail-ready .footer-grid { grid-template-columns: 1fr; }
}
