main section {
  margin-bottom: 2rem;

  .container {
    padding: 0;
  }
}

section.convenios-section-header .header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;

  h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: #035c2f;
    text-align: center;
  }

  > p {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.5;
    text-align: center;
    font-weight: 600;
    margin: 0;
  }

  .intro-text {
    p {
      color: #4b5563;
      font-size: 0.875rem;
      line-height: 1.6;
      text-align: center;
      margin-bottom: 0.75rem;
    }
  }

  @media (min-width: 768px) {
    padding: 2rem 0;

    h1 {
      font-size: 2.5rem;
    }

    > p {
      font-size: 1.25rem;
    }

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

  @media (min-width: 1024px) {
    h1 {
      font-size: 3.75rem;
    }

    > p {
      font-size: 1.5rem;
      line-height: 1.75rem;
    }

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

section.convenios-section-main {
  .container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .section-title {
    margin-bottom: 2rem;
    text-align: center;

    h2 {
      position: relative;
      font-size: 1.75rem;
      line-height: 1.3;
      font-weight: 700;
      color: #035c2f;
      margin-bottom: 1rem;
      display: inline-block;

      &:after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -0.5rem;
        height: 0.25rem;
        width: 50%;
        border-radius: 9999px;
        background-color: #00944a;
        transition: width 0.3s ease;
      }
    }
  }

  .convenios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .convenio-card {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .convenio-logo {
      width: 100%;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      background-color: #fff;
      border-radius: 8px;
      padding: 0.5rem;

      img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
      }
    }

    h3 {
      font-size: 1rem;
      font-weight: 600;
      color: #035c2f;
      margin-bottom: 0.5rem;
    }

    .convenio-badge {
      position: absolute;
      top: 0.5rem;
      right: 0.5rem;
      background: linear-gradient(135deg, #008c45 0%, #035c2f 100%);
      color: #fff;
      font-size: 0.625rem;
      font-weight: 600;
      padding: 0.25rem 0.5rem;
      border-radius: 50px;
    }
  }

  .convenio-cta {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f3f4f6;
    border-radius: 12px;

    p {
      font-size: 0.875rem;
      line-height: 1.6;
      color: #374151;
      margin-bottom: 1.5rem;
    }

    .btn-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 2rem;
      background-color: #25d366;
      color: #fff;
      border-radius: 50px;
      text-decoration: none;
      font-size: 1rem;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

      i {
        font-size: 1.25rem;
      }

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        background-color: #128c7e;
        color: #fff;
        text-decoration: none;
      }
    }
  }

  @media (min-width: 768px) {
    .container {
      padding: 2rem;
      border-radius: 14px;
    }

    .section-title {
      h2 {
        font-size: 2rem;

        &:after {
          width: 40%;
        }
      }
    }

    .convenios-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .convenio-card {
      padding: 2rem;

      .convenio-logo {
        height: 100px;
      }

      h3 {
        font-size: 1.125rem;
      }

      .convenio-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
      }
    }

    .convenio-cta {
      padding: 2.5rem 2rem;

      p {
        font-size: 1rem;
      }
    }
  }

  @media (min-width: 1024px) {
    .container {
      padding: 3rem;
      border-radius: 16px;
    }

    .section-title {
      h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;

        &:after {
          width: 30%;
        }
      }
    }

    .convenios-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
  }
}

section.convenios-section-plans {
  .container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .section-title {
    margin-bottom: 2rem;
    text-align: center;

    h2 {
      position: relative;
      font-size: 1.75rem;
      line-height: 1.3;
      font-weight: 700;
      color: #035c2f;
      margin-bottom: 1rem;
      display: inline-block;

      &:after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -0.5rem;
        height: 0.25rem;
        width: 50%;
        border-radius: 9999px;
        background-color: #00944a;
      }
    }
  }

  .plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .plan-card {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .plan-icon {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #008c45 0%, #035c2f 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;

      i {
        font-size: 1.5rem;
        color: #fff;
      }
    }

    h3 {
      font-size: 1rem;
      font-weight: 600;
      color: #035c2f;
    }
  }

  .plans-info {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9fafb;
    border-radius: 12px;

    p {
      font-size: 0.875rem;
      line-height: 1.6;
      color: #374151;
      margin-bottom: 1rem;
    }

    .btn-cta-secondary {
      display: inline-flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 2rem;
      background-color: #25d366;
      color: #fff;
      border-radius: 50px;
      text-decoration: none;
      font-size: 1rem;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      margin-top: 1rem;

      i {
        font-size: 1.25rem;
      }

      &:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        background-color: #128c7e;
        color: #fff;
        text-decoration: none;
      }
    }
  }

  @media (min-width: 768px) {
    .container {
      padding: 2rem;
      border-radius: 14px;
    }

    .section-title {
      h2 {
        font-size: 2rem;

        &:after {
          width: 40%;
        }
      }
    }

    .plans-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .plan-card {
      padding: 2rem;

      .plan-icon {
        width: 80px;
        height: 80px;

        i {
          font-size: 2rem;
        }
      }

      h3 {
        font-size: 1.125rem;
      }
    }

    .plans-info {
      padding: 2.5rem 2rem;

      p {
        font-size: 1rem;
      }
    }
  }

  @media (min-width: 1024px) {
    .container {
      padding: 3rem;
      border-radius: 16px;
    }

    .section-title {
      h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;

        &:after {
          width: 30%;
        }
      }
    }

    .plans-grid {
      grid-template-columns: repeat(5, 1fr);
      gap: 2rem;
    }
  }
}

section.convenios-section-faq {
  .container {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .section-title {
    margin-bottom: 2rem;
    text-align: center;

    h2 {
      position: relative;
      font-size: 1.75rem;
      line-height: 1.3;
      font-weight: 700;
      color: #035c2f;
      margin-bottom: 1rem;
      display: inline-block;

      &:after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -0.5rem;
        height: 0.25rem;
        width: 50%;
        border-radius: 9999px;
        background-color: #00944a;
      }
    }
  }

  .faq-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .faq-item {
    background-color: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #008c45;
    transition: all 0.3s ease;

    &:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      border-left-color: #035c2f;
    }

    .faq-question {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 1rem;

      i {
        font-size: 1.5rem;
        color: #008c45;
        min-width: 24px;
        margin-top: 0.25rem;
      }

      h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #035c2f;
        margin: 0;
      }
    }

    .faq-answer {
      padding-left: 2.5rem;

      p {
        font-size: 0.875rem;
        line-height: 1.6;
        color: #374151;
        margin: 0;

        a {
          color: #008c45;
          font-weight: 600;
          text-decoration: underline;
          transition: color 0.3s ease;

          &:hover {
            color: #035c2f;
          }
        }
      }
    }
  }

  @media (min-width: 768px) {
    .container {
      padding: 2rem;
      border-radius: 14px;
    }

    .section-title {
      h2 {
        font-size: 2rem;

        &:after {
          width: 40%;
        }
      }
    }

    .faq-item {
      padding: 2rem;

      .faq-question {
        h3 {
          font-size: 1.25rem;
        }
      }

      .faq-answer {
        p {
          font-size: 1rem;
        }
      }
    }
  }

  @media (min-width: 1024px) {
    .container {
      padding: 3rem;
      border-radius: 16px;
    }

    .section-title {
      h2 {
        font-size: 2.25rem;
        line-height: 2.5rem;

        &:after {
          width: 30%;
        }
      }
    }

    .faq-content {
      gap: 2rem;
    }
  }
}
