/* ============================================================
   VISA ABORDO CONSULTING — CENTRO DE TRANSPARENCIA
   Page-specific styles. Load after components.css.
   ============================================================ */

/* ── ENCABEZADO DE PÁGINA ──────────────────────────────────── */

.tc-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: calc(var(--navbar-height) + var(--space-12));
  padding-bottom: var(--space-10);
}

.tc-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.tc-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 3.5vw, 40px);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-primary-800);
  margin-bottom: var(--space-5);
}

.tc-hero__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.tc-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.tc-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary, var(--text-secondary));
}

.tc-hero__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ── MOBILE TOC ────────────────────────────────────────────── */

.tc-mobile-toc {
  background: var(--color-primary-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
}

.tc-mobile-toc__details {
  padding-block: var(--space-3);
}

.tc-mobile-toc__summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.8);
  list-style: none;
  cursor: pointer;
  padding-block: var(--space-2);
}

.tc-mobile-toc__summary::-webkit-details-marker { display: none; }
.tc-mobile-toc__summary svg:first-child { width: 16px; height: 16px; flex-shrink: 0; }

.tc-mobile-toc__chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--dur-normal) var(--ease);
}

details[open] .tc-mobile-toc__chevron { transform: rotate(180deg); }

.tc-mobile-toc__nav {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-3);
  padding-bottom: var(--space-4);
  gap: var(--space-1);
}

.tc-mobile-toc__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.tc-mobile-toc__link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

.tc-mobile-toc__link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  color: var(--color-accent-400);
  flex-shrink: 0;
}

/* ── MAIN LAYOUT ───────────────────────────────────────────── */

.tc-wrap {
  background: var(--bg-surface);
  padding-block: var(--space-12) var(--space-20);
}

.tc-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */

.tc-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-6));
}

.tc-nav {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tc-nav__head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.tc-nav__label {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-placeholder);
  margin: 0;
}

.tc-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-2) 0;
}

.tc-nav__list li + li {
  border-top: 1px solid var(--border-subtle);
}

.tc-nav__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  line-height: 1.4;
}

.tc-nav__link:hover {
  color: var(--brand-primary);
  background: var(--color-primary-50);
}

.tc-nav__link.is-active {
  color: var(--brand-primary);
  background: var(--color-primary-50);
  font-weight: var(--fw-semibold);
}

.tc-nav__link.is-active .tc-nav__code {
  background: var(--color-primary-800);
  color: var(--color-white);
}

.tc-nav__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 var(--space-2);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.tc-nav__contact {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-subtle);
  background: var(--color-primary-50);
}

.tc-nav__contact p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
  font-weight: var(--fw-medium);
}

.tc-nav__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

.tc-nav__contact a:hover { color: var(--brand-primary-hover); text-decoration: underline; }

/* ── CONTENT AREA ──────────────────────────────────────────── */

.tc-content {
  min-width: 0;
}

/* ── POLICY SECTION CARDS ──────────────────────────────────── */

.tc-section {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  margin-bottom: var(--space-6);
  scroll-margin-top: calc(var(--navbar-height) + var(--space-6));
  box-shadow: var(--shadow-sm);
}

.tc-section:last-of-type { margin-bottom: 0; }

.tc-section__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-7);
  border-bottom: 2px solid var(--color-primary-50);
}

.tc-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary-800);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-extrabold);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 32, 53, 0.25);
}

.tc-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── SECTION BODY TYPOGRAPHY ───────────────────────────────── */

.tc-section__body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 0 var(--space-4);
}

.tc-section__body p:last-child { margin-bottom: 0; }

.tc-section__body strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* Intro block */
.tc-section__intro {
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.tc-section__intro h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
}

.tc-section__intro p:last-child { margin-bottom: 0; }

/* ── SUBSECTIONS ───────────────────────────────────────────── */

.tc-subsection {
  padding-top: var(--space-6);
  margin-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
}

.tc-subsection:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.tc-subsection__title {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--brand-primary);
  margin: 0 0 var(--space-4);
  line-height: 1.4;
}

.tc-subsection__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px var(--space-2);
  background: var(--color-accent-50);
  border: 1px solid rgba(90, 211, 209, 0.25);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--fw-bold);
  font-family: var(--font-heading);
  color: var(--color-accent-600);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

/* ── LIST HEADING ──────────────────────────────────────────── */

.tc-list-heading {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin: var(--space-4) 0 var(--space-3) !important;
}

/* ── BULLET LISTS ──────────────────────────────────────────── */

.tc-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.tc-list:last-child { margin-bottom: 0; }

.tc-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.tc-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  flex-shrink: 0;
  margin-top: 0.55em;
}

/* ── FINAL CTA ─────────────────────────────────────────────── */

.tc-cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: var(--color-primary-800);
  border-radius: var(--radius-2xl);
  padding: var(--space-7) var(--space-8);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.tc-cta__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-400);
  flex-shrink: 0;
}

.tc-cta__icon svg { width: 24px; height: 24px; }

.tc-cta__body {
  flex: 1;
  min-width: 200px;
}

.tc-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin: 0 0 var(--space-1);
}

.tc-cta__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0;
}

.tc-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--brand-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-800);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.tc-cta__btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.tc-cta__btn:hover { opacity: 0.88; transform: translateX(2px); }

/* ── RESPONSIVE ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .tc-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-6);
  }

  .tc-section {
    padding: var(--space-8);
  }
}

@media (max-width: 860px) {
  .tc-layout {
    grid-template-columns: 1fr;
  }

  .tc-sidebar {
    display: none;
  }

  .tc-mobile-toc {
    display: block;
    position: sticky;
    top: var(--navbar-height);
    z-index: var(--z-sticky);
  }

  .tc-hero {
    padding-top: calc(var(--navbar-height) + var(--space-14));
    padding-bottom: var(--space-14);
  }

  .tc-hero__deco {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .tc-section {
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .tc-section__title {
    font-size: var(--text-xl);
  }

  .tc-section__num {
    width: 36px;
    height: 36px;
    font-size: var(--text-xs);
    border-radius: var(--radius-lg);
  }

  .tc-subsection__title {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .tc-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
    padding: var(--space-6);
  }

  .tc-hero__title { font-size: var(--text-4xl); }
}
