/* TodAps — barra superior, barra inferior y pie ÚNICOS para todo el sitio (2026-12-01).
   Una sola hoja y un solo marcado (todaps-shell/build.py). No dupliques estos estilos en otras hojas.
   El prefijo tds- evita que los estilos antiguos (td-site-header, body > footer…) los alteren.
   Los !important de color vencen al reset "a { color: inherit !important }" de responsive-minimal.css. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/inter-latin-variable.woff2') format('woff2'); }

:root {
  --tds-h: 68px;
  --tds-bg: #f7f7f8;
  --tds-ink: #0f172a;
  --tds-mut: #4b5563;
  --tds-accent: #006b94;
  --tds-hover: rgba(15, 23, 42, .06);
  --tds-cta: #0f172a;
  --tds-cta-ink: #ffffff;
  --tds-tabbar: #ffffff;
  --tds-ease: cubic-bezier(.22, 1, .36, 1);
}
:root.dark {
  --tds-bg: #0e1116;
  --tds-ink: #f4f5f7;
  --tds-mut: #bac4d2;
  --tds-accent: #5ac9f5;
  --tds-hover: rgba(255, 255, 255, .08);
  --tds-cta: #0099d5;
  --tds-cta-ink: #04141c;
  --tds-tabbar: #0f172a;
}
html { scroll-padding-top: calc(var(--tds-h) + 16px + env(safe-area-inset-top)); }
body.td-unified-shell { padding-top: calc(var(--tds-h) + env(safe-area-inset-top)) !important; }

.tds-header, .tds-header *, .tds-tabbar, .tds-tabbar *, .tds-footer, .tds-footer * { box-sizing: border-box; }
.tds-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.tds-icon { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Barra superior ---------- */
header.tds-header {
  position: fixed; inset: 0 0 auto; z-index: 1100; display: block;
  width: 100%; max-width: none; height: calc(var(--tds-h) + env(safe-area-inset-top));
  margin: 0; padding: env(safe-area-inset-top) 0 0; border: 0; box-shadow: none;
  background: var(--tds-bg); color: var(--tds-ink);
  font-family: Inter, "SF Pro Text", -apple-system, system-ui, "Segoe UI", sans-serif; line-height: 1;
}
.tds-header, .tds-tabbar, .tds-footer { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.tds-inner {
  display: flex; align-items: center; gap: 12px; height: var(--tds-h);
  width: 100%; max-width: 76rem; margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
}
.tds-brand { display: flex; align-items: center; flex: none; min-height: 44px; border-radius: 10px; }
.tds-brand img, .tds-footer-brand img { display: block; width: 140px; height: auto; max-width: none; margin: 0; }
html.dark .tds-brand img, html.dark .tds-footer-brand img { filter: brightness(0) invert(1); }
.tds-menu { display: none; align-items: center; gap: 2px; margin: 0 0 0 12px; padding: 0; min-width: 0; }
.tds-header a.tds-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 40px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--tds-mut) !important;
  font: 600 13.5px/1 Inter, "SF Pro Text", -apple-system, system-ui, sans-serif; letter-spacing: 0; white-space: nowrap;
  text-decoration: none !important; transition: color .16s ease, background-color .16s ease !important;
}
.tds-header a.tds-link .tds-icon { width: 16px; height: 16px; }
/* Cada sección tiene su color; al pasar el ratón la raya se extiende desde el centro. */
:is(.tds-link, .tds-tab) { --c: #0099d5; --c-text: #006b94; }
:is(.tds-link, .tds-tab)[href="/publicidad-ia/"] { --c: #ff2d46; --c-text: #c8102e; }
:is(.tds-link, .tds-tab)[href="/diseno-grafico/"] { --c: #ff2d8d; --c-text: #c2185b; }
:is(.tds-link, .tds-tab)[href="/fotografia/"] { --c: #ff6a00; --c-text: #b84000; }
:is(.tds-link, .tds-tab)[href="/reparaciones/"] { --c: #00c853; --c-text: #00753e; }
:is(.tds-link, .tds-tab)[href="/soluciones-tech/"] { --c: #00b8a9; --c-text: #00716f; }
html.dark :is(.tds-link, .tds-tab) { --c-text: #38bdf8; }
html.dark :is(.tds-link, .tds-tab)[href="/publicidad-ia/"] { --c-text: #ff5f69; }
html.dark :is(.tds-link, .tds-tab)[href="/diseno-grafico/"] { --c-text: #f9a8d4; }
html.dark :is(.tds-link, .tds-tab)[href="/fotografia/"] { --c-text: #fdba74; }
html.dark :is(.tds-link, .tds-tab)[href="/reparaciones/"] { --c-text: #4ade80; }
html.dark :is(.tds-link, .tds-tab)[href="/soluciones-tech/"] { --c-text: #5eead4; }
.tds-header a.tds-link { position: relative; }
.tds-header a.tds-link::after {
  content: ""; position: absolute; right: 10px; bottom: 2px; left: 10px; height: 2.5px; border-radius: 99px;
  background: var(--c); opacity: 0; transform: scaleX(.15); pointer-events: none;
  transition: transform 280ms var(--tds-ease), opacity 140ms ease;
}
.tds-header a.tds-link:is([aria-current="page"], :focus-visible) { color: var(--c-text) !important; }
.tds-header a.tds-link:is([aria-current="page"], :focus-visible)::after { opacity: 1; transform: none; }
.tds-actions { display: flex; align-items: center; flex: none; gap: 2px; margin: 0 0 0 auto; }
.tds-header .tds-action {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 12px; box-shadow: none;
  background: transparent; color: var(--tds-mut) !important; cursor: pointer; text-decoration: none !important;
  transition: color .16s ease, background-color .16s ease !important;
}
.tds-action .tds-sun, html.dark .tds-action .tds-moon { display: none; }
html.dark .tds-action .tds-sun { display: block; }
.tds-header a.tds-cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-height: 44px; margin: 0 0 0 6px; padding: 0 16px; border: 0; border-radius: 12px; box-shadow: none;
  background: var(--tds-cta); color: var(--tds-cta-ink) !important;
  font: 700 14px/1 Inter, "SF Pro Text", -apple-system, system-ui, sans-serif; letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none !important; transition: opacity .16s ease, transform .16s var(--tds-ease) !important;
}
.tds-header a.tds-cta:active { transform: scale(.97); }
.tds-header :is(a, button):focus-visible, .tds-tabbar a:focus-visible, .tds-footer a:focus-visible { outline: 2px solid var(--tds-accent); outline-offset: 2px; }
.tds-tabbar a:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .tds-header a.tds-link:hover { color: var(--c-text) !important; }
  .tds-header a.tds-link:hover::after { opacity: 1; transform: none; }
  .tds-header .tds-action:hover { color: var(--tds-ink) !important; background: var(--tds-hover); }
  .tds-header a.tds-cta:hover { opacity: .88; }
}
@media (min-width: 1024px) { .tds-menu { display: flex; } }
@media (min-width: 1024px) and (max-width: 1259px) {
  .tds-menu { gap: 0; margin-left: 4px; }
  .tds-header a.tds-link { padding: 0 7px; font-size: 13px; }
  .tds-header a.tds-link::after { right: 7px; left: 7px; }
  .tds-header a.tds-link .tds-icon { display: none; }
}

/* ---------- Barra inferior (celular y tableta) ---------- */
nav.tds-tabbar { display: none; }
@media (max-width: 1023px) {
  nav.tds-tabbar {
    position: fixed; inset: auto 0 0; z-index: 1000; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%; margin: 0; padding: 0 0 env(safe-area-inset-bottom); border: 0; background: var(--tds-tabbar);
    font-family: Inter, "SF Pro Text", -apple-system, system-ui, sans-serif;
  }
  .tds-tabbar a.tds-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    min-width: 0; min-height: 64px; padding: 8px 0; color: var(--tds-mut) !important;
    text-decoration: none !important; transition: color .16s ease !important; -webkit-tap-highlight-color: transparent;
  }
  .tds-tabbar a.tds-tab .tds-icon { width: 21px; height: 21px; transition: transform .16s var(--tds-ease); }
  .tds-tabbar a.tds-tab:active .tds-icon { transform: scale(.9); }
  .tds-tabbar a.tds-tab span { font-size: clamp(10.5px, 2.9vw, 12px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
  .tds-tabbar a.tds-tab[aria-current="page"] { color: var(--c-text) !important; }
}

/* ---------- Pie ---------- */
footer.tds-footer {
  position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; border: 0;
  padding: 48px 20px calc(48px + env(safe-area-inset-bottom));
  background: transparent; color: var(--tds-mut); text-align: center;
  font: 400 14px/1.5 Inter, "SF Pro Text", -apple-system, system-ui, sans-serif;
}
.tds-footer a { color: var(--tds-mut) !important; text-decoration: none !important; border-radius: 10px; transition: color .16s ease !important; }
.tds-footer a.tds-footer-brand { display: inline-flex; align-items: center; min-height: 44px; }
.tds-footer-brand img { width: 152px; }
.tds-footer nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: 0; padding: 0; }
.tds-footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; }
.tds-footer .tds-footer-nav { margin-top: 12px; font-weight: 600; }
.tds-footer .tds-social { gap: 8px; margin: 10px 0 8px; }
.tds-footer .tds-social a { width: 48px; height: 48px; padding: 0; color: var(--tds-ink) !important; }
.tds-footer .tds-social .tds-icon { width: 24px; height: 24px; stroke-width: 1.8; }
.tds-footer p { margin: 0; color: var(--tds-mut); font-size: 14px; line-height: 1.5; }
.tds-footer .tds-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
.tds-footer .tds-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.tds-footer .tds-legal { margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .tds-footer a:hover { color: var(--tds-accent) !important; } }
@media (max-width: 1023px) {
  footer.tds-footer { padding: 36px 16px calc(64px + 96px + env(safe-area-inset-bottom)); }
  body:has(.tds-tabbar) > main { padding-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .tds-header a.tds-cta:active, .tds-tabbar a.tds-tab:active .tds-icon { transform: none; } .tds-header a.tds-link::after { transform: none; transition: opacity 140ms ease; } }

/* ---------- Espacio del hero del inicio bajo la barra fija ---------- */
@media (max-width: 960px) and (orientation: portrait) {
  #tab-inicio > section.todaps-hero-lab.hero-photo-cover:first-child { padding-top: calc(var(--tds-h) + env(safe-area-inset-top)) !important; }
}
@media (min-width: 961px) and (orientation: landscape) {
  #tab-inicio > section.todaps-hero-lab.hero-photo-cover:first-child, #tab-inicio .hero-photo-cover .hero-minimal-shell { min-height: calc(100svh - var(--tds-h) - env(safe-area-inset-top)) !important; }
}
