/* ==========================================================================
   Auditoría - Supervisión Page Styles
   Figma Node: 22889:75859
   ========================================================================== */

/* Variables / Tokens mapped to ICAC Design System */
:root {
  --as-primary: #b91c1c; /* base/primary */
  --as-primary-foreground: #fafafa;
  --as-foreground: #0a0a0a;
  --as-muted-foreground: #525252;
  --as-background: #ffffff;
  --as-border: #e5e5e5;
  --as-card-bg: #f9fafb;
  --as-shadow-xs: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
}

/* Page Container */
.supervision-page-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--as-background);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.supervision-hero {
  position: relative;
  width: 100%;
  height: 288px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.supervision-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.supervision-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%; /* Adjust to match Figma crop */
}

.supervision-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.supervision-hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supervision-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 1152px;
}

.supervision-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.supervision-breadcrumb-link,
.supervision-breadcrumb-current {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--as-primary-foreground);
  text-decoration: none;
}

.supervision-breadcrumb-link:hover {
  text-decoration: underline;
}

.supervision-hero-title-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.supervision-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 40px;
  color: var(--as-primary-foreground);
  margin: 0;
}

/* ==========================================================================
   Content Layout (TOC + Main)
   ========================================================================== */
.supervision-content-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 64px 24px;
}

.supervision-content-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 1024px) {
  .supervision-content-container {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Table of Contents (Left Sidebar)
   -------------------------------------------------------------------------- */
.supervision-toc {
  width: 100%;
  max-width: 256px;
  flex: 1 0 auto;
  padding: 24px 0;
}

.supervision-toc-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.supervision-toc-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--as-foreground);
  margin: 0;
}

.supervision-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supervision-toc-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--as-muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.supervision-toc-link:hover {
  color: var(--as-foreground);
}

.supervision-toc-link.active {
  color: var(--as-primary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Main Area (Right Column)
   -------------------------------------------------------------------------- */
.supervision-main-area {
  flex: 1;
  width: 100%;
  max-width: 976px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

.supervision-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 30px;
}

.supervision-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: var(--as-foreground);
  margin: 0;
}

.supervision-rich-text p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--as-foreground);
  margin: 0 0 24px 0;
}

.supervision-rich-text p:last-child {
  margin-bottom: 0;
}

.supervision-image-wrapper {
  width: 100%;
  height: 549px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 10px;
}

@media (max-width: 767px) {
  .supervision-image-wrapper {
    height: auto;
  }
}

.supervision-content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.supervision-separator {
  width: 100%;
  height: 1px;
  background-color: var(--as-border);
  border: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   3-Card Grid
   -------------------------------------------------------------------------- */
.supervision-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  margin-top: 10px;
}

@media (min-width: 480px) {
  .supervision-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .supervision-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.supervision-card {
  background-color: var(--as-card-bg);
  border: 1px solid var(--as-border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.supervision-card-icon-wrapper {
  width: 44px;
  height: 44px;
  background-color: var(--as-background);
  border: 1px solid var(--as-border);
  border-radius: 8px;
  box-shadow: var(--as-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.supervision-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.supervision-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: var(--as-foreground);
  margin: 0 0 16px 0;
}

.supervision-card-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: var(--as-muted-foreground);
  margin: 0 0 16px 0;
  flex-grow: 1; /* Pushes button to bottom */
}

/* Card 2 in Figma does NOT have justify-between */
.supervision-card--no-stretch .supervision-card-text {
  flex-grow: 0;
}

.supervision-card--no-stretch {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.supervision-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: var(--as-background);
  border: 1px solid var(--as-border);
  border-radius: 8px;
  box-shadow: var(--as-shadow-xs);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--as-foreground);
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-top: auto;
}

.supervision-btn-outline:hover {
  background-color: #f3f4f6; /* slate-100 */
}

.supervision-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 8px 16px;
  background-color: var(--as-primary);
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: var(--as-shadow-xs);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--as-primary-foreground);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.supervision-btn-primary:hover {
  background-color: #991b1b; /* red-800 */
}

.w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   CTA Section — Figma: flex row, gap-24, items-start, pb-30px
   -------------------------------------------------------------------------- */
.supervision-cta-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 30px;
}

@media (min-width: 768px) {
  .supervision-cta-section {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
}

.supervision-cta-content {
  width: 770px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 767px) {
  .supervision-cta-content {
    width: 100%;
  }
}

.supervision-cta-text {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--as-foreground);
  margin: 0;
}

.supervision-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  flex: 1 0 0;
}

