:root {
  --primary-blue: #183EFF;
  --text-dark: #2C2C2C;
  --text-gray: #444444;
  --bg-light: #FFFFFF;
  --border-color: #E5E7EB;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  display: block;
}

img {
  max-width: 100%;
  display: block;
}

.main-header {
  background-color: transparent;

  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 60px auto 30px;

  border-radius: 15px;

  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}

@media (max-width: 768px) {
  .main-header {
    margin: 20px auto 20px;
    border-radius: 0;
  }

  .header-bg-art {
    height: 200px;
    object-fit: cover;
    object-position: center;
  }

  .header-title {
    left: 3rem !important;

  }

  .header-title h1 {
    font-size: 1.25rem !important;

  }
}

.header-bg-art {
  width: 100%;
  height: auto;
  display: block;
}

.header-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

}

.header-title {
  position: absolute;
  top: 50%;
  left: 8rem;

  transform: translateY(-50%);
  pointer-events: auto;
}

.header-title h1 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 3rem;

  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 0;
}

.main-wrapper {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.25fr;

  gap: 5rem;

}

@media (max-width: 600px) {
  .main-wrapper {
    margin: 1.5rem auto;
    padding: 0 1.25rem;
    gap: 2rem;
  }
}

.intro-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.intro-title {
  color: #183EFF;
  font-family: var(--font-heading);
  font-size: 2rem;

  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .intro-title {
    font-size: 1.5rem;
  }

  .intro-text p {
    font-size: 0.75rem;
  }
}

.intro-text p {
  color: #444444;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.gov-branding {
  max-width: 480px;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  padding-top: 2rem;
}

.gov-branding img {
  width: 100%;
  height: auto;
  max-width: 600px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 20px;
  padding: 1.5rem;

  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  border-color: #183EFF;
  box-shadow: 0 10px 25px rgba(24, 62, 255, 0.08);
}

.card-hero {
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 600px) {
  .card-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.card-hero .icon-box {
  flex-shrink: 0;
  width: 60px;

}

.card-hero .content h3 {
  font-size: 1.5rem;

  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #2C2C2C;
  font-family: var(--font-heading);
}

.card-hero .content p {
  font-size: 1rem;
  color: #444444;
  line-height: 1.5;
}

.card-hero .arrow-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 24px;
}

.small-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .small-cards-grid {
    grid-template-columns: 1fr;
  }

  .card-small h3 {
    min-height: auto;
    margin-bottom: 0.5rem;
  }
}

.card-small {
  height: 100%;

}

.card-small .icon-box {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
}

.card-small h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2C2C2C;
  font-family: var(--font-heading);
  min-height: 3rem;

}

.card-small p {
  font-size: 0.875rem;
  color: #444444;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-small .arrow-icon {
  width: 24px;
  margin-top: auto;
}

.icon-svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .card-hero .icon-box {
    width: 48px;
  }

  .card-hero .content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-content,
  .cards-container,
  .gov-branding {
    grid-column: auto;
    grid-row: auto;
  }

  .gov-branding {
    max-width: 100%;
    margin-top: 3rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    order: 3;
    width: 100%;
  }

  .intro-content {
    order: 1;
  }

  .cards-container {
    order: 2;
  }


}

.page-content {
  gap: 3rem;
}

.breadcrumb {
  grid-column: 1 / -1;
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #183EFF;
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.back-icon {
  width: 16px;
  height: auto;
}

.content-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.content-grid.reverse-layout {
  grid-template-columns: 280px 1fr;
}

@media (max-width: 900px) {
  .content-grid.reverse-layout {
    grid-template-columns: 1fr;
  }
}

.modules-section {
  margin-top: 5rem;
}

@media (max-width: 900px) {
  .modules-section {
    margin-top: 2.5rem;
    gap: 3rem;
  }
}

.section-title {
  color: #183EFF;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.blue-title {
  color: #183EFF;
}

.filter-description {
  margin-bottom: 1rem;
}

.filter-description h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #2C2C2C;
}

.filter-description p {
  color: #444444;
  font-size: 1rem;
  line-height: 1.6;
}

@media (min-width: 901px) {

  .visual-column,
  .visual-column-left {
    position: sticky;
    top: 2rem;
  }
}

.filters-icon-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #2C2C2C;
  font-weight: 700;
}

.funnel-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
  color: #183EFF;
}

.visual-filter-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visual-filter-item {
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #444444;
}

.v-icon {
  margin-right: 0.75rem;
}

.v-arrow-icon {
  margin-left: auto;
  width: 10px;
  height: auto;
  display: block;
}

.visual-export-btn {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #E5E7EB;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #555;
  font-size: 0.875rem;
  font-weight: 600;
  width: 100%;
}

.kpi-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kpi-demo-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 24px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  min-height: 200px;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  line-height: 1;
}

.kpi-value.blue {
  color: #183EFF;
}

.kpi-value.dark {
  color: #2C2C2C;
}

.kpi-label {
  font-size: 1rem;
  color: #444444;
  font-weight: 700;
}

.gov-branding {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  display: flex;
  justify-content: center;
  padding-top: 4rem;
  padding-bottom: 2rem;
  width: 100%;
}

.fases-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-top: 86px;
}

.timeline-deco-top {
  position: absolute;
  top: 0;
  right: 50%;
  width: 100px;
  height: 100px;
  margin-right: 105px;
  z-index: 10;
}

.deco-vector {
  position: absolute;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding-bottom: 0px;
  min-height: 108px;
  margin-bottom: -19px;
}

.step-curve {
  position: absolute;
  top: 31px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.step-right .step-curve {
  right: 50%;
  margin-right: 0;
}

.step-right .step-label {
  left: 70px;
  text-align: left;
}

.step-left .step-curve {
  left: 50%;
  margin-left: -1px;
}

.step-left .step-label {
  right: 70px;
  text-align: right;
}

.step-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 0px;
  height: 60px;
  z-index: 2;
}

.step-marker-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  z-index: 20;
}

.step-marker-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 3px;
  left: 3px;
  border-radius: 50%;
}

.step-number {
  position: relative;
  z-index: 3;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: #2C2C2C;
}

.step-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #2C2C2C;
  white-space: nowrap;
  width: 150px;
}

.fases-timeline img {
  display: block;
}

.step-end {
  min-height: auto;
  margin-bottom: 2rem;
}

.step-end .step-label {
  left: 70px;
  text-align: left;
}

.timeline-deco-bottom {
  position: absolute;
  top: -27px;
  left: 51%;
  transform: translateX(-50%);
  margin-left: -33px;
}

.timeline-bottom-deco {
  position: relative;
  top: 100px;
}

#view-guia-fases .filter-description h3 {
  display: inline;
  margin-bottom: 0;
  margin-right: 0.1em;
  font-size: 1rem;
}

#view-guia-fases .filter-description p {
  display: inline;
}

@media (max-width: 480px) {
  .step-label {
    white-space: normal;
    width: 95px;
    line-height: 1.2;
    font-size: 0.75rem;
  }

  .step-right .step-label,
  .step-end .step-label {
    left: 42px;
    text-align: left;
  }

  .step-left .step-label {
    right: 42px;
    text-align: right;
  }

  .timeline-deco-top {
    margin-right: 75px;
  }
}

/* Indicators Section Refactor */
.indicators-section-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  /* margin-top removed to rely on grid gap */
}

.indicator-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: center;
}

.indicator-text h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C2C2C;
  margin-bottom: 0.5rem;
}

.indicator-text p {
  color: #444444;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {


  .indicator-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .kpi-demo-card {
    width: 100%;
    max-width: 320px;
  }
}