/* ════════════════════════════════════════════════════════════
   TezlikSoftware — Topbar & Footer compartido
   Basado en el sistema de diseño de /tezlikmrp/index.php
════════════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --tz-brand:      #386297;
  --tz-brand-dark: #1e3a5f;
  --tz-accent:     #e85d04;
  --tz-accent-hov: #c44d00;
  --tz-dark:       #0f172a;
  --tz-navy:       #1a2744;
  --tz-white:      #ffffff;
  --tz-gray-600:   #475569;
  --tz-topbar-h:   64px;
}

/* ── SKIP LINK (accesibilidad) ── */
.tz-skip-link {
  position: absolute;
  top: -9999px;
  left: 8px;
  z-index: 99999;
  background: #1e3a5f;
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .1s;
}
.tz-skip-link:focus {
  top: 0;
}

/* ── RESET BODY OFFSET ── */
body {
  margin: 0;
  padding-top: var(--tz-topbar-h) !important;
}

/* ════════════════════════════════
   TOPBAR
════════════════════════════════ */
.tz-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tz-topbar-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: var(--tz-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

/* ── LOGO ── */
.tz-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  flex-shrink: 0;
}

.tz-logo img {
  height: 34px;
  width: auto;
  display: block;
}

/* ── NAV WRAP (links + CTA) ── */
.tz-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

/* ── NAV LINKS ── */
.tz-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.tz-nav > a {
  color: rgba(255, 255, 255, 0.75) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.tz-nav > a:hover,
.tz-nav > a.tz-active {
  color: var(--tz-white) !important;
  background: rgba(255, 255, 255, 0.07);
}

/* ── DROPDOWN ── */
.tz-dropdown {
  position: relative;
}

.tz-dropdown > button {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}

.tz-dropdown > button::after {
  content: '▾';
  font-size: 11px;
  opacity: 0.6;
}

.tz-dropdown:hover > button {
  color: var(--tz-white) !important;
  background: rgba(255, 255, 255, 0.07);
}
.tz-dropdown > button:focus-visible,
.tz-topbar a:focus-visible,
.tz-topbar button:focus-visible {
  outline: 3px solid var(--tz-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.tz-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px;
  padding-top: 12px;
  z-index: 10000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.tz-dropdown:hover .tz-dropdown-menu,
.tz-dropdown-menu:hover {
  display: block;
}

.tz-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.15s;
}

.tz-dropdown-menu a:hover {
  background: rgba(56, 98, 151, 0.2);
  color: var(--tz-white) !important;
}

/* ── CTA BUTTON ── */
.tz-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--tz-accent);
  color: var(--tz-white) !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
}

.tz-cta:hover {
  background: var(--tz-accent-hov);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 93, 4, 0.35);
  color: var(--tz-white) !important;
}

/* ── HAMBURGER TOGGLE ── */
.tz-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.tz-toggle:hover { background: rgba(255, 255, 255, 0.07); }

.tz-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
.tz-footer {
  background: var(--tz-dark);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin-top: 0;
}

.tz-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 24px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tz-footer-brand .tz-logo {
  margin-bottom: 12px;
}

.tz-footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 16px;
}

.tz-footer-social {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.tz-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.15s;
}

.tz-footer-social a:hover {
  background: rgba(56, 98, 151, 0.25);
  color: var(--tz-white) !important;
}

.tz-footer-col h4 {
  color: var(--tz-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 0;
}

.tz-footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none !important;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.15s;
}

.tz-footer-col a:hover {
  color: var(--tz-white) !important;
}

.tz-footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 900px) {
  .tz-nav,
  .tz-cta {
    display: none;
  }

  .tz-toggle {
    display: flex;
  }

  /* Mobile nav open state */
  .tz-topbar.tz-open .tz-nav,
  .tz-topbar.tz-open .tz-cta {
    display: flex;
  }

  .tz-topbar.tz-open .tz-nav-wrap {
    position: fixed;
    top: var(--tz-topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 15, 30, 0.99);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 4px;
    justify-content: flex-start;
  }

  .tz-topbar.tz-open .tz-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .tz-topbar.tz-open .tz-nav > a,
  .tz-topbar.tz-open .tz-dropdown > button {
    padding: 11px 14px;
    width: 100%;
    text-align: left;
  }

  .tz-topbar.tz-open .tz-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 8px;
    margin: 4px 0 4px 8px;
  }

  .tz-topbar.tz-open .tz-cta {
    justify-content: center;
    padding: 13px;
    margin-top: 4px;
  }

  .tz-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }

  .tz-footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .tz-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ============================================================
   Breadcrumb (.bc-nav)
   ============================================================ */
.bc-nav {
  background: #0c1628;
  border-top: 1px solid rgba(148, 163, 184, .1);
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  padding: 8px 0;
}

.bc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1160px;
}

.bc-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 1;
}

.bc-item a {
  color: #64748b;
  text-decoration: none;
  transition: color .15s;
}

.bc-item a:hover,
.bc-item a:focus-visible {
  color: #e85d04;
  outline: none;
}

.bc-item a:focus-visible {
  outline: 2px solid #e85d04;
  outline-offset: 2px;
  border-radius: 2px;
}

.bc-current span {
  color: #94a3b8;
  font-weight: 500;
}

.bc-sep {
  color: #334155;
  font-size: 11px;
  user-select: none;
}
